mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-15 10:03:45 +01:00
Fix: blaze burner overfill and automation issue
Currently when inserting an item that smelts > 50 items such as lava buckets into an unfueled blaze burner, its burn time will go over maximum. This fixes that by limiting added burn time from a single item to 98% of max burn time. Also fixes #3518
This commit is contained in:
parent
0c5ccf38ee
commit
172c8da43e
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ public class BlazeBurnerTileEntity extends SmartTileEntity {
|
|||
newBurnTime = 1000;
|
||||
newFuel = FuelType.SPECIAL;
|
||||
} else {
|
||||
newBurnTime = ForgeHooks.getBurnTime(itemStack, null);
|
||||
newBurnTime = (int)Math.min(ForgeHooks.getBurnTime(itemStack, null), (float)(MAX_HEAT_CAPACITY) * 0.98);
|
||||
if (newBurnTime > 0)
|
||||
newFuel = FuelType.NORMAL;
|
||||
else if (AllItemTags.BLAZE_BURNER_FUEL_REGULAR.matches(itemStack)) {
|
||||
|
|
Loading…
Reference in a new issue