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
1 changed files with 6 additions and 1 deletions

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);
if (_slot == ArmorSlot.HELMET)
{
Manager.removeGadgetType(player, GadgetType.FLAG, this);
}
Manager.removeOutfit(player, _slot);
_active.add(player);