Merge pull request #3958 from NotSoEpic/mc1.18/dev

Fix: blaze burner overfill and automation issue
This commit is contained in:
simibubi 2022-12-07 16:50:43 +01:00 committed by GitHub
commit 89856bbe67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,7 +192,7 @@ public class BlazeBurnerTileEntity extends SmartTileEntity {
newBurnTime = 1000; newBurnTime = 1000;
newFuel = FuelType.SPECIAL; newFuel = FuelType.SPECIAL;
} else { } else {
newBurnTime = ForgeHooks.getBurnTime(itemStack, null); newBurnTime = (int)Math.min(ForgeHooks.getBurnTime(itemStack, null), (float)(MAX_HEAT_CAPACITY) * 0.98);
if (newBurnTime > 0) if (newBurnTime > 0)
newFuel = FuelType.NORMAL; newFuel = FuelType.NORMAL;
else if (AllItemTags.BLAZE_BURNER_FUEL_REGULAR.matches(itemStack)) { else if (AllItemTags.BLAZE_BURNER_FUEL_REGULAR.matches(itemStack)) {