Skip to content

Commit 74093ac

Browse files
committed
Fix sawmill having a broken comparator (and machine interface) output when the blade breaks, see #6044
1 parent 30e6952 commit 74093ac

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Fix internal slot counts for consumed items in the assembler, no longer duplicating buckets of water (BluSunrize)
1313
- Fix arc furnace secondaries having reversed output chances (voidsong-dragonfly)
1414
- Fix incorrect documentation about the sample drill in the manual (voidsong-dragonfly)
15+
- Fix sawmill having a broken comparator (and machine interface) output when the blade breaks (BluSunrize)
1516
- Translations Added/Updated: cs_cz.json (RomanPlayer22), zh_cn.json (Cactusstudent, SlimeSB, mc-kaishixiaxue, JustAlkaid)
1617

1718
##### Version 1.20.4-11.6.1-181

src/main/java/blusunrize/immersiveengineering/common/blocks/multiblocks/logic/sawmill/SawmillLogic.java

+2
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ public IEnergyStorage getEnergy()
461461

462462
private float getSawbladeComparatorValue()
463463
{
464+
if(sawblade.isEmpty())
465+
return 0;
464466
return 1-(sawblade.getDamageValue()/(float)sawblade.getMaxDamage());
465467
}
466468
}

0 commit comments

Comments
 (0)