fix inventory being editable while voting phase

This commit is contained in:
xXVevzZXx 2016-06-11 16:27:31 +02:00
parent 75e36d0e08
commit a461e9cf1c
1 changed files with 5 additions and 0 deletions

View File

@ -1505,6 +1505,11 @@ public class Build extends Game
{
Player player = ((Player) event.getWhoClicked());
if (_buildGameState == 2 || _buildGameState == 3)
{
event.setCancelled(true);
}
if (IsLive() && IsAlive(player))
{
BuildData buildData = _data.get(player);