diff --git a/src/main/java/cam72cam/immersiverailroading/tile/TileRail.java b/src/main/java/cam72cam/immersiverailroading/tile/TileRail.java index 838b32e4e..2b6e792d3 100644 --- a/src/main/java/cam72cam/immersiverailroading/tile/TileRail.java +++ b/src/main/java/cam72cam/immersiverailroading/tile/TileRail.java @@ -171,6 +171,9 @@ public double percentFloating() { @Override public double getTrackGauge() { + if (info == null) { + return 0; + } return info.settings.gauge.value(); } }