send the description packet from the server as this is a server sided method

This commit is contained in:
Progwml6 committed 2014-03-08 20:01:59 -05:00
1 parent 24003e588a
commit 6046c24e2d
1 file changed
+2 -4
@@ -43,8 +43,6 @@ import tconstruct.inventory.SmelteryContainer;
import tconstruct.library.crafting.Smeltery;
import tconstruct.util.SmelteryDamageSource;
import tconstruct.util.config.PHConstruct;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
/* Simple class for storing items in the block
*/
@@ -421,8 +419,8 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
if (itemAdded)
{
this.needsUpdate = true;
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT)
FMLCommonHandler.instance().getClientToServerNetworkManager().scheduleOutboundPacket(getDescriptionPacket());
//TODO 1.7.5 send description packet in better way to not cause render update
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}
}