Skip to content

Commit 28c6b9c

Browse files
Fixed laser hatch exchanging (#37)
(cherry picked from commit cdd2863)
1 parent ea45f7c commit 28c6b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/recursive_pineapple/matter_manipulator/common/building/GTAnalysisResult.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,11 @@ public boolean apply(IBlockApplyContext ctx) {
429429
tt.parametrization.setInputs(mTTParams);
430430
}
431431

432-
if (mte instanceof MTEHatchEnergyTunnel hatch) {
432+
if (mAmperes > 0 && mte instanceof MTEHatchEnergyTunnel hatch) {
433433
hatch.Amperes = MMUtils.clamp(mAmperes, 0, hatch.maxAmperes);
434434
}
435435

436-
if (mte instanceof MTEHatchDynamoTunnel dynamo) {
436+
if (mAmperes > 0 && mte instanceof MTEHatchDynamoTunnel dynamo) {
437437
dynamo.Amperes = MMUtils.clamp(mAmperes, 0, dynamo.maxAmperes);
438438
}
439439
}

0 commit comments

Comments
 (0)