Re-allowed opening of chests (for GUIs) during games.

This commit is contained in:
Chiss 2014-09-14 15:28:43 +10:00
parent f3df86a5a9
commit 26a51f4ef2

View File

@ -261,14 +261,14 @@ public class GameFlagManager implements Listener
}
if (!game.InventoryOpenChest)
{
if (event.getInventory().getType() == InventoryType.CHEST)
{
event.setCancelled(true);
event.getPlayer().closeInventory();
}
}
// if (!game.InventoryOpenChest)
// {
// if (event.getInventory().getType() == InventoryType.CHEST)
// {
// event.setCancelled(true);
// event.getPlayer().closeInventory();
// }
// }
}
@EventHandler(priority = EventPriority.LOWEST)