Stop outfits from taking off flags

This commit is contained in:
Graphica 2017-06-28 18:40:24 -04:00 committed by cnr
parent 6639d6eaed
commit 13f4211739

View File

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