This commit is contained in:
modmuss50 2016-11-05 10:43:00 +00:00
parent 9af69638e2
commit 916913337b
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -2,9 +2,11 @@ package techreborn.tiles.generator;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.ForgeModContainer;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
@ -56,7 +58,12 @@ public class TileGenerator extends TilePowerAcceptor implements IWrenchable, IIn
updateState();
burnItem = getStackInSlot(fuelSlot);
if (getStackInSlot(fuelSlot).stackSize == 1) {
if(getStackInSlot(fuelSlot).getItem() == Items.LAVA_BUCKET || getStackInSlot(fuelSlot).getItem() == ForgeModContainer.getInstance().universalBucket){
setInventorySlotContents(fuelSlot, new ItemStack(Items.BUCKET));
} else {
setInventorySlotContents(fuelSlot, null);
}
} else {
decrStackSize(fuelSlot, 1);
}