Changed crate sample stack to only build server side

This commit is contained in:
Robert S 2014-04-26 11:45:14 -04:00
parent 6d68efe697
commit 679c1f88dc

View file

@ -102,6 +102,8 @@ public class TileCrate extends TileExternalInventory implements IPacketReceiver,
}
public void buildSampleStack(boolean buildInv)
{
if (worldObj == null || !worldObj.isRemote)
{
ItemStack newSampleStack = null;
boolean rebuildBase = false;
@ -142,6 +144,7 @@ public class TileCrate extends TileExternalInventory implements IPacketReceiver,
this.getInventory().buildInventory(this.sampleStack);
}
}
}
@Override
public ItemStack addStackToStorage(ItemStack stack)