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