Skip to content

Commit

Permalink
stackability moment
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Jan 17, 2024
1 parent 13f152a commit 93f9d42
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.railwayteam.railways.mixin.client;


import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
import com.llamalad7.mixinextras.sugar.Local;
Expand Down Expand Up @@ -28,7 +29,7 @@ public class MixinTrackGraphVisualizer {

// If the track edge is a monorail track, then change the y offset and make it higher so that
// the signal line is visible to the player
@ModifyConstant(method = "visualiseSignalEdgeGroups", constant = @Constant(floatValue = 64f))
@ModifyExpressionValue(method = "visualiseSignalEdgeGroups", at = @At(value = "CONSTANT", args = "floatValue=64f"))
private static float fixYOffsetForMonorailTracks(float constant, @Local TrackEdge edge) {
return edge.getTrackMaterial() == CRTrackMaterials.MONORAIL ? 5.1f : constant;
}
Expand Down

0 comments on commit 93f9d42

Please sign in to comment.