mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
Fix to be compatible with latest Bukkit.
This commit is contained in:
parent
08ba9de51c
commit
ce60452a35
@ -14,13 +14,12 @@ public class DynmapBlockListener extends BlockListener {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockPlaced(BlockPlaceEvent event) {
|
||||
public void onBlockPlace(BlockPlaceEvent event) {
|
||||
Block blockPlaced = event.getBlockPlaced();
|
||||
mgr.touch(blockPlaced.getX(), blockPlaced.getY(), blockPlaced.getZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockDamaged(BlockDamageEvent event) {
|
||||
public void onBlockDamage(BlockDamageEvent event) {
|
||||
if (event.getDamageLevel() == BlockDamageLevel.BROKEN) {
|
||||
Block blockBroken = event.getBlock();
|
||||
mgr.touch(blockBroken.getX(), blockBroken.getY(), blockBroken.getZ());
|
||||
|
Loading…
Reference in New Issue
Block a user