Skip to content

Commit 4ee45f0

Browse files
authored
Fix Crash
Fix ClassCastException in TileQuarry.clearArea() - call .get() on config value
1 parent b918c57 commit 4ee45f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/electrodynamics/common/tile/machines/quarry/TileQuarry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ private boolean mineBlock(BlockPos pos, BlockState state, float strength, Level
593593
// responsible for clearing initial obstructions from the mining area
594594
private void clearArea() {
595595
ComponentElectrodynamic electro = getComponent(IComponentType.Electrodynamic);
596-
setupPowerUsage.setValue(ElectrodynamicsConfig.INSTANCE.QUARRY_USAGE_PER_TICK);
596+
setupPowerUsage.setValue(ElectrodynamicsConfig.INSTANCE.QUARRY_USAGE_PER_TICK.get());
597597
isPowered.setValue(electro.getJoulesStored() >= setupPowerUsage.getValue());
598598
if (hasCorners() && isPowered.getValue()) {
599599
Level world = getLevel();

0 commit comments

Comments
 (0)