From 3fd0ed89b0f0c791bdc0da778825dae5d8f3c4f6 Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Sun, 6 Mar 2011 14:50:15 +0100 Subject: [PATCH] Removed (seemingly broken) event BLOCK_DAMAGED. --- configuration.txt | 3 +-- src/main/java/org/dynmap/DynmapPlugin.java | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) 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); } {