Fix #789
This commit is contained in:
parent
9af69638e2
commit
916913337b
1 changed files with 8 additions and 1 deletions
|
@ -2,9 +2,11 @@ package techreborn.tiles.generator;
|
||||||
|
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.init.Items;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntityFurnace;
|
import net.minecraft.tileentity.TileEntityFurnace;
|
||||||
import net.minecraft.util.EnumFacing;
|
import net.minecraft.util.EnumFacing;
|
||||||
|
import net.minecraftforge.common.ForgeModContainer;
|
||||||
import reborncore.api.power.EnumPowerTier;
|
import reborncore.api.power.EnumPowerTier;
|
||||||
import reborncore.api.tile.IInventoryProvider;
|
import reborncore.api.tile.IInventoryProvider;
|
||||||
import reborncore.common.IWrenchable;
|
import reborncore.common.IWrenchable;
|
||||||
|
@ -56,7 +58,12 @@ public class TileGenerator extends TilePowerAcceptor implements IWrenchable, IIn
|
||||||
updateState();
|
updateState();
|
||||||
burnItem = getStackInSlot(fuelSlot);
|
burnItem = getStackInSlot(fuelSlot);
|
||||||
if (getStackInSlot(fuelSlot).stackSize == 1) {
|
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);
|
setInventorySlotContents(fuelSlot, null);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
decrStackSize(fuelSlot, 1);
|
decrStackSize(fuelSlot, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue