Stop outfits from taking off flags
This commit is contained in:
parent
6639d6eaed
commit
13f4211739
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user