diff --git a/configuration.txt b/configuration.txt index a7bf65cc..10d54410 100755 --- a/configuration.txt +++ b/configuration.txt @@ -7,8 +7,7 @@ render-triggers: # - playermove # - playerjoin - blockplaced - - blockbroken -# - blockbreak + - blockbreak # - chunkgenerated # - chunkloaded diff --git a/src/main/java/org/dynmap/DynmapPlugin.java b/src/main/java/org/dynmap/DynmapPlugin.java index 7a7ae53c..8ac9f555 100644 --- a/src/main/java/org/dynmap/DynmapPlugin.java +++ b/src/main/java/org/dynmap/DynmapPlugin.java @@ -184,16 +184,8 @@ public class DynmapPlugin extends JavaPlugin { public void onBlockBreak(BlockBreakEvent event) { mm.touch(event.getBlock().getLocation()); } - - @Override - public void onBlockDamage(BlockDamageEvent event) { - if (event.getDamageLevel() == BlockDamageLevel.BROKEN) { - mm.touch(event.getBlock().getLocation()); - } - } }; if (isTrigger("blockplaced")) pm.registerEvent(Event.Type.BLOCK_PLACED, renderTrigger, Priority.Monitor, this); - if (isTrigger("blockbroken")) pm.registerEvent(Event.Type.BLOCK_DAMAGED, renderTrigger, Priority.Monitor, this); if (isTrigger("blockbreak")) pm.registerEvent(Event.Type.BLOCK_BREAK, renderTrigger, Priority.Monitor, this); } {