diff --git a/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java b/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java index 04d63ede..5d2c5ca7 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java @@ -702,7 +702,9 @@ public void onInventoryOpen(InventoryOpenEvent event) { if (holder instanceof BlockState) { Events.fireToCancel(event, new UseBlockEvent(event, create(event.getPlayer()), ((BlockState) holder).getBlock())); } else if (holder instanceof Entity) { - Events.fireToCancel(event, new UseEntityEvent(event, create(event.getPlayer()), (Entity) holder)); + if (!(holder instanceof Player)) { + Events.fireToCancel(event, new UseEntityEvent(event, create(event.getPlayer()), (Entity) holder)); + } } }