From 172c8da43e51cb2346d36b2c2bd18369d6470b39 Mon Sep 17 00:00:00 2001 From: NotSoEpic Date: Sat, 29 Oct 2022 09:43:20 +0800 Subject: [PATCH] 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 --- .../contraptions/processing/burner/BlazeBurnerTileEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerTileEntity.java b/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerTileEntity.java index 6a17d9f85..32b40148e 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerTileEntity.java +++ b/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerTileEntity.java @@ -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)) {