Skip to content

Commit

Permalink
stackability moment x2
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Jan 17, 2024
1 parent 93f9d42 commit aaa2f03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit aaa2f03

Please sign in to comment.