Fix chemical generator not burning fuel if it going to be exactly filling internal buffer
This commit is contained in:
parent
90a2d4f9ca
commit
513f8afbe0
@ -258,7 +258,7 @@ class BlockEntityChemicalGenerator(pos: BlockPos, state: BlockState) : BlockEnti
|
||||
if (!container.getItem(0).isEmpty) {
|
||||
val ticks = ForgeHooks.getBurnTime(container.getItem(0), null)
|
||||
|
||||
if (ticks >= 4 && (energy.batteryLevel < Fraction.ONE || GENERATION_SPEED * (ticks / 4) + energy.batteryLevel < energy.maxBatteryLevel)) {
|
||||
if (ticks >= 4 && (energy.batteryLevel < Fraction.ONE || GENERATION_SPEED * (ticks / 4) + energy.batteryLevel <= energy.maxBatteryLevel)) {
|
||||
working_ticks_total = ticks / 4
|
||||
working_ticks = ticks / 4
|
||||
container.getItem(0).shrink(1)
|
||||
|
Loading…
Reference in New Issue
Block a user