Attempting to fix dupe bug with certain plugins and Super Breaker.

This commit is contained in:
Glitchfinder 2012-11-12 14:58:32 -08:00
parent eebda74bb7
commit 4500c4d407

View File

@ -294,6 +294,14 @@ public class BlockListener implements Listener {
Block block = event.getBlock(); Block block = event.getBlock();
Material material = block.getType(); Material material = block.getType();
FakeBlockBreakEvent fakeEvent = new FakeBlockBreakEvent(block, player);
mcMMO.p.getServer().getPluginManager().callEvent(fakeEvent);
if(fakeEvent.isCancelled())
return;
else
fakeEvent.setCancelled(true);
Config configInstance = Config.getInstance(); Config configInstance = Config.getInstance();
Permissions permInstance = Permissions.getInstance(); Permissions permInstance = Permissions.getInstance();