mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +01:00
Removed (seemingly broken) event BLOCK_DAMAGED.
This commit is contained in:
parent
1001028c2a
commit
3fd0ed89b0
@ -7,8 +7,7 @@ render-triggers:
|
|||||||
# - playermove
|
# - playermove
|
||||||
# - playerjoin
|
# - playerjoin
|
||||||
- blockplaced
|
- blockplaced
|
||||||
- blockbroken
|
- blockbreak
|
||||||
# - blockbreak
|
|
||||||
# - chunkgenerated
|
# - chunkgenerated
|
||||||
# - chunkloaded
|
# - chunkloaded
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user