Fixed armbot rendering a ghost item
This commit is contained in:
parent
92c1854cd8
commit
00517ab0b3
1 changed files with 2 additions and 4 deletions
|
@ -311,8 +311,7 @@ public class TileEntityArmbot extends TileEntityAssembly implements IMultiBlock,
|
|||
}
|
||||
else
|
||||
{
|
||||
PacketHandler.instance().sendPacketToClients(PacketHandler.instance().getTilePacket(this.getChannel(), "armbotItem", this, false, ((ItemStack) this.grabbedObject).writeToNBT(new NBTTagCompound())), worldObj, new Vector3(this), 64);
|
||||
|
||||
PacketHandler.instance().sendPacketToClients(PacketHandler.instance().getTilePacket(this.getChannel(), "armbotItem", this, false), worldObj, new Vector3(this), 64);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -410,11 +409,10 @@ public class TileEntityArmbot extends TileEntityAssembly implements IMultiBlock,
|
|||
{
|
||||
Vector3 handPosition = this.getHandPos();
|
||||
DarksHelper.dropItemStack(worldObj, handPosition, (ItemStack) this.getHeldObject(), false);
|
||||
this.sendGrabItemToClient();
|
||||
}
|
||||
this.grabbedObject = null;
|
||||
this.sendGrabItemToClient();
|
||||
return true;
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue