Re-allowed opening of chests (for GUIs) during games.
This commit is contained in:
parent
f3df86a5a9
commit
26a51f4ef2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user