Fix a few crashes
This commit is contained in:
parent
7f9acda277
commit
2d1dabd6b2
|
@ -252,7 +252,7 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, IItem
|
|||
{
|
||||
if(isElectricChest(itemstack))
|
||||
{
|
||||
if(!world.isRemote)
|
||||
if(world != null && !world.isRemote)
|
||||
{
|
||||
InventoryElectricChest inv = new InventoryElectricChest(itemstack);
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ public class GuiMultimeter extends GuiContainer
|
|||
data.add((byte)3);
|
||||
data.add(Float.parseFloat(textFieldLimit.getText()));
|
||||
|
||||
PacketHandler.sendPacket(Transmission.SERVER, new PacketTileEntity().setParams(Object3D.get(tileEntity)), data);
|
||||
PacketHandler.sendPacket(Transmission.SERVER, new PacketTileEntity().setParams(Object3D.get(tileEntity), data));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue