Removed (seemingly broken) event BLOCK_DAMAGED.

This commit is contained in:
FrozenCow 2011-03-06 14:50:15 +01:00
parent 1001028c2a
commit 3fd0ed89b0
2 changed files with 1 additions and 10 deletions

View File

@ -7,8 +7,7 @@ render-triggers:
# - playermove # - playermove
# - playerjoin # - playerjoin
- blockplaced - blockplaced
- blockbroken - blockbreak
# - blockbreak
# - chunkgenerated # - chunkgenerated
# - chunkloaded # - chunkloaded

View File

@ -184,16 +184,8 @@ public class DynmapPlugin extends JavaPlugin {
public void onBlockBreak(BlockBreakEvent event) { public void onBlockBreak(BlockBreakEvent event) {
mm.touch(event.getBlock().getLocation()); 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("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); if (isTrigger("blockbreak")) pm.registerEvent(Event.Type.BLOCK_BREAK, renderTrigger, Priority.Monitor, this);
} }
{ {