fixed bug where players kept inventory open, to be able to enable morphs ingame.

This commit is contained in:
Chiss 2014-08-14 17:31:14 +10:00
parent c72f4b6057
commit 74435bac12
2 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,7 @@ import mineplex.core.account.CoreClientManager;
import mineplex.core.common.util.C;
import mineplex.core.common.util.UtilGear;
import mineplex.core.common.util.UtilInv;
import mineplex.core.common.util.UtilServer;
import mineplex.core.cosmetic.ui.CosmeticShop;
import mineplex.core.donation.DonationManager;
import mineplex.core.gadget.GadgetManager;
@ -154,6 +155,10 @@ public class CosmeticManager extends MiniPlugin
public void setActive(boolean b)
{
_showInterface = b;
if (!b)
for (Player player : UtilServer.getPlayers())
player.getOpenInventory().close();
}
public void disableItemsForGame()