Stop outfits from taking off flags

This commit is contained in:
Graphica 2017-06-28 18:40:24 -04:00
parent 2ef463c859
commit f291d37896

View File

@ -60,7 +60,12 @@ public abstract class OutfitGadget extends Gadget
public void applyArmor(Player player, boolean message)
{
Manager.removeGadgetType(player, GadgetType.MORPH, this);
Manager.removeGadgetType(player, GadgetType.FLAG, this);
if (_slot == ArmorSlot.HELMET)
{
Manager.removeGadgetType(player, GadgetType.FLAG, this);
}
Manager.removeOutfit(player, _slot);
_active.add(player);