Fix WeaponStand dup glitch

This commit is contained in:
Ste3et_C0st 2019-02-25 13:50:32 +01:00
parent 4025b38c4a
commit 18892b5cde
1 changed files with 1 additions and 1 deletions

View File

@ -80,8 +80,8 @@ public class weaponStand extends Furniture implements Listener{
if(getObjID().getSQLAction().equals(SQLAction.REMOVE)) return;
if(player == null) return;
if(canBuild(player)) {
if(this.p != null) {return;}
this.p = player;
ItemStack itemstack = p.getInventory().getItemInMainHand();
if(itemstack!=null&&matList.contains(itemstack.getType())){
for(fEntity packet : getManager().getfArmorStandByObjectID(getObjID())){