Skip to content

Commit

Permalink
Fixed laser hatch exchanging (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursivePineapple authored Jan 25, 2025
1 parent 2041cb2 commit cdd2863
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ public boolean apply(IBlockApplyContext ctx) {
tt.parametrization.setInputs(mTTParams);
}

if (mte instanceof MTEHatchEnergyTunnel hatch) {
if (mAmperes > 0 && mte instanceof MTEHatchEnergyTunnel hatch) {
hatch.Amperes = MMUtils.clamp(mAmperes, 0, hatch.maxAmperes);
}

if (mte instanceof MTEHatchDynamoTunnel dynamo) {
if (mAmperes > 0 && mte instanceof MTEHatchDynamoTunnel dynamo) {
dynamo.Amperes = MMUtils.clamp(mAmperes, 0, dynamo.maxAmperes);
}

Expand Down

0 comments on commit cdd2863

Please sign in to comment.