Fixed logging chest accesses for workbenches

This commit is contained in:
Robin Kupper
2011-08-23 14:59:52 +02:00
parent f47dc5ec90
commit d64f7e4b65

View File

@@ -36,7 +36,7 @@ class LBChestAccessListener extends InventoryListener
@Override
public void onInventoryOpen(InventoryOpenEvent event) {
if (!event.isCancelled() && event.getLocation() != null)
if (!event.isCancelled() && event.getLocation() != null && event.getLocation().getBlock().getTypeId() != 58)
containers.put(event.getPlayer().getName().hashCode(), compressInventory(event.getInventory().getContents()));
}
}