From 00517ab0b3230bebdddadd2da85bacf7d73be38c Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 26 Dec 2013 18:16:25 -0500 Subject: [PATCH] Fixed armbot rendering a ghost item --- .../builtbroken/assemblyline/armbot/TileEntityArmbot.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/builtbroken/assemblyline/armbot/TileEntityArmbot.java b/src/main/java/com/builtbroken/assemblyline/armbot/TileEntityArmbot.java index 0973ef59a..d8b8242a4 100644 --- a/src/main/java/com/builtbroken/assemblyline/armbot/TileEntityArmbot.java +++ b/src/main/java/com/builtbroken/assemblyline/armbot/TileEntityArmbot.java @@ -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; }