fixed bug where players kept inventory open, to be able to enable morphs ingame.
This commit is contained in:
parent
c72f4b6057
commit
74435bac12
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user