Changed crate sample stack to only build server side
This commit is contained in:
parent
6d68efe697
commit
679c1f88dc
1 changed files with 34 additions and 31 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue