Fix a few crashes
This commit is contained in:
parent
7f9acda277
commit
2d1dabd6b2
2 changed files with 2 additions and 2 deletions
|
@ -252,7 +252,7 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, IItem
|
||||||
{
|
{
|
||||||
if(isElectricChest(itemstack))
|
if(isElectricChest(itemstack))
|
||||||
{
|
{
|
||||||
if(!world.isRemote)
|
if(world != null && !world.isRemote)
|
||||||
{
|
{
|
||||||
InventoryElectricChest inv = new InventoryElectricChest(itemstack);
|
InventoryElectricChest inv = new InventoryElectricChest(itemstack);
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ public class GuiMultimeter extends GuiContainer
|
||||||
data.add((byte)3);
|
data.add((byte)3);
|
||||||
data.add(Float.parseFloat(textFieldLimit.getText()));
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue