From 99248caba331a356fcee77c3d6f884e789b3fb80 Mon Sep 17 00:00:00 2001 From: Sean Porter Date: Sun, 11 May 2014 01:30:11 -0700 Subject: [PATCH] Redstone ore now throws events when it flips on or off. Fixes issue #2021 --- src/main/java/com/gmail/nossr50/listeners/EntityListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java index 0daf51364..070a845bb 100644 --- a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java @@ -1,5 +1,6 @@ package com.gmail.nossr50.listeners; +import org.bukkit.Material; import org.bukkit.OfflinePlayer; import org.bukkit.block.Block; import org.bukkit.enchantments.Enchantment; @@ -125,6 +126,9 @@ public class EntityListener implements Listener { mcMMO.getPlaceStore().setTrue(block); } } + else if ((block.getType() == Material.REDSTONE_ORE || block.getType() == Material.GLOWING_REDSTONE_ORE) && (event.getTo() == Material.REDSTONE_ORE || event.getTo() == Material.GLOWING_REDSTONE_ORE)) { + return; + } else { if (mcMMO.getPlaceStore().isTrue(block)) { mcMMO.getPlaceStore().setFalse(block);