Fixes thermal generator crash, closes #972

(cherry picked from commit bb582fd)
This commit is contained in:
modmuss50 2017-03-15 22:15:55 +00:00
parent 056eff09b2
commit 10bbdbc4d7
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -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(),