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 c4a63eff0..3aa865471 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 @@ -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; @@ -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; }