This commit is contained in:
modmuss50 2017-01-24 21:28:54 +00:00
parent 38cad3b0f1
commit c058e2fbee
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -172,4 +172,14 @@ public class TileGenerator extends TilePowerAcceptor implements IWrenchable, IIn
.syncIntegerValue(this::getBurnTime, this::setBurnTime)
.syncIntegerValue(this::getTotalBurnTime, this::setTotalBurnTime).addInventory().create();
}
@Override
public boolean canInsertItem(int index, ItemStack itemStackIn, EnumFacing direction) {
return TileGenerator.getItemBurnTime(itemStackIn) != 0;
}
@Override
public int[] getSlotsForFace(EnumFacing side) {
return new int[]{fuelSlot};
}
}