From aaa2f0352c6469792513508ace04905a0a319216 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Wed, 17 Jan 2024 15:56:53 -0500 Subject: [PATCH] stackability moment x2 --- .../railways/mixin/client/MixinTrackGraphVisualizer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/railwayteam/railways/mixin/client/MixinTrackGraphVisualizer.java b/common/src/main/java/com/railwayteam/railways/mixin/client/MixinTrackGraphVisualizer.java index 3aa865471..6782c1453 100644 --- a/common/src/main/java/com/railwayteam/railways/mixin/client/MixinTrackGraphVisualizer.java +++ b/common/src/main/java/com/railwayteam/railways/mixin/client/MixinTrackGraphVisualizer.java @@ -30,8 +30,8 @@ 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 @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; + private static float fixYOffsetForMonorailTracks(float original, @Local TrackEdge edge) { + return edge.getTrackMaterial() == CRTrackMaterials.MONORAIL ? 5.1f : original; } @Inject(method = "debugViewGraph",