Allow Flags to interact with costumes and hats correctly

This commit is contained in:
Graphica 2017-06-28 01:36:21 -04:00 committed by cnr
parent e04d467830
commit 4cc1068055
3 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ public abstract class HatGadget extends OutfitGadget
public void applyArmor(Player player, boolean message)
{
Manager.removeGadgetType(player, GadgetType.MORPH, this);
Manager.removeGadgetType(player, GadgetType.FLAG, this);
Manager.removeOutfit(player, _slot);
_active.add(player);

View File

@ -26,7 +26,8 @@ public abstract class MorphGadget extends Gadget
public void applyArmor(Player player, boolean message)
{
Manager.removeGadgetType(player, GadgetType.MORPH, this);
Manager.removeGadgetType(player, GadgetType.COSTUME);
Manager.removeGadgetType(player, GadgetType.COSTUME, this);
Manager.removeGadgetType(player, GadgetType.FLAG, this);
_active.add(player);

View File

@ -60,7 +60,7 @@ 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);
Manager.removeOutfit(player, _slot);
_active.add(player);