Redstone ore now throws events when it flips on or off.

Fixes issue #2021
This commit is contained in:
Sean Porter 2014-05-11 01:30:11 -07:00
parent af64bdf742
commit 99248caba3

View File

@ -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);