From 6e0d454315ed9438ccd1ebc52dd31c00108d703e Mon Sep 17 00:00:00 2001 From: Christian Mesh Date: Wed, 18 Jul 2018 09:40:47 -0400 Subject: [PATCH] Fix turn table floating track calcs --- .../java/cam72cam/immersiverailroading/tile/TileRail.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/cam72cam/immersiverailroading/tile/TileRail.java b/src/main/java/cam72cam/immersiverailroading/tile/TileRail.java index ec66a0e45..99e3d605e 100644 --- a/src/main/java/cam72cam/immersiverailroading/tile/TileRail.java +++ b/src/main/java/cam72cam/immersiverailroading/tile/TileRail.java @@ -26,6 +26,7 @@ import cam72cam.immersiverailroading.track.BuilderTurn; import cam72cam.immersiverailroading.track.TrackBase; import cam72cam.immersiverailroading.track.TrackRail; +import cam72cam.immersiverailroading.util.BlockUtil; import cam72cam.immersiverailroading.util.RailInfo; import cam72cam.immersiverailroading.util.VecUtil; @@ -317,7 +318,9 @@ public double percentFloating() { if (!world.isBlockLoaded(tpos)) { return 0; } - boolean isOnRealBlock = world.isSideSolid(tpos, EnumFacing.UP, false) || !Config.ConfigDamage.requireSolidBlocks && !world.isAirBlock(tpos); + boolean isOnRealBlock = world.isSideSolid(tpos, EnumFacing.UP, false) || + !Config.ConfigDamage.requireSolidBlocks && !world.isAirBlock(tpos) || + BlockUtil.isIRRail(world, tpos); if (!isOnRealBlock) { floating += 1.0 / trackCheckCache.size(); }