Fixes thermal generator crash, closes #972
(cherry picked from commit bb582fd)
This commit is contained in:
parent
056eff09b2
commit
10bbdbc4d7
1 changed files with 0 additions and 6 deletions
|
@ -25,7 +25,6 @@
|
|||
package techreborn.tiles.generator;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.network.NetworkManager;
|
||||
import net.minecraft.network.play.server.SPacketUpdateTileEntity;
|
||||
|
@ -113,11 +112,6 @@ public abstract class TileBaseFluidGenerator extends TilePowerAcceptor implement
|
|||
}
|
||||
}
|
||||
|
||||
if (this.tank.getFluidType() != null && this.getStackInSlot(2) == ItemStack.EMPTY)
|
||||
this.inventory.setInventorySlotContents(2, new ItemStack(this.tank.getFluidType().getBlock()));
|
||||
else if (this.tank.getFluidType() == null && this.getStackInSlot(2) != ItemStack.EMPTY)
|
||||
this.setInventorySlotContents(2, ItemStack.EMPTY);
|
||||
|
||||
if (!this.world.isRemote) {
|
||||
if (this.world.getTotalWorldTime() - this.lastOutput < 30 && !this.isActive())
|
||||
this.world.setBlockState(this.getPos(),
|
||||
|
|
Loading…
Add table
Reference in a new issue