Removed (seemingly broken) event BLOCK_DAMAGED.
This commit is contained in:
parent
1001028c2a
commit
3fd0ed89b0
2 changed files with 1 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue