mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-24 11:36:11 +01:00
Attempt to fix item frame issues
This commit is contained in:
parent
5c85f39228
commit
548bdb7eb5
@ -192,15 +192,15 @@ public void onEntityInteract(PlayerInteractEntityEvent event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity instanceof ItemFrame
|
// if (entity instanceof ItemFrame
|
||||||
&& ((!plugin.getGlobalRegionManager().allows(
|
// && ((!plugin.getGlobalRegionManager().allows(
|
||||||
DefaultFlag.ENTITY_ITEM_FRAME_DESTROY, entity.getLocation())))) {
|
// DefaultFlag.ENTITY_ITEM_FRAME_DESTROY, entity.getLocation())))) {
|
||||||
event.setCancelled(true);
|
// event.setCancelled(true);
|
||||||
} else if (entity instanceof Painting
|
// } else if (entity instanceof Painting
|
||||||
&& ((!plugin.getGlobalRegionManager().allows(
|
// && ((!plugin.getGlobalRegionManager().allows(
|
||||||
DefaultFlag.ENTITY_PAINTING_DESTROY, entity.getLocation())))) {
|
// DefaultFlag.ENTITY_PAINTING_DESTROY, entity.getLocation())))) {
|
||||||
event.setCancelled(true);
|
// event.setCancelled(true);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user