Skip to content

Commit

Permalink
send the description packet from the server as this is a server sided…
Browse files Browse the repository at this point in the history
… method
  • Loading branch information
progwml6 committed Mar 9, 2014
1 parent 24003e5 commit 6046c24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/tconstruct/blocks/logic/SmelteryLogic.java
Expand Up @@ -43,8 +43,6 @@
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
*/
Expand Down Expand Up @@ -421,8 +419,8 @@ private void handleItemEntity (EntityItem item)
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);
}
}

Expand Down

0 comments on commit 6046c24

Please sign in to comment.