Skip to content

Commit cdd2863

Browse files
Fixed laser hatch exchanging (#37)
1 parent 2041cb2 commit cdd2863

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
@@ -435,11 +435,11 @@ public boolean apply(IBlockApplyContext ctx) {
435435
tt.parametrization.setInputs(mTTParams);
436436
}
437437

438-
if (mte instanceof MTEHatchEnergyTunnel hatch) {
438+
if (mAmperes > 0 && mte instanceof MTEHatchEnergyTunnel hatch) {
439439
hatch.Amperes = MMUtils.clamp(mAmperes, 0, hatch.maxAmperes);
440440
}
441441

442-
if (mte instanceof MTEHatchDynamoTunnel dynamo) {
442+
if (mAmperes > 0 && mte instanceof MTEHatchDynamoTunnel dynamo) {
443443
dynamo.Amperes = MMUtils.clamp(mAmperes, 0, dynamo.maxAmperes);
444444
}
445445

0 commit comments

Comments
 (0)