From a20911db309cad25cb0413f67aa44f0d414166f8 Mon Sep 17 00:00:00 2001 From: Kaiz Date: Fri, 10 Sep 2021 16:18:01 +0900 Subject: [PATCH] [Fix] Incorrect the height of the block where branch rails with different elevations --- src/main/java/jp/ngt/rtm/rail/TileEntityLargeRailBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/jp/ngt/rtm/rail/TileEntityLargeRailBase.java b/src/main/java/jp/ngt/rtm/rail/TileEntityLargeRailBase.java index c86f38c8..c415c7e8 100644 --- a/src/main/java/jp/ngt/rtm/rail/TileEntityLargeRailBase.java +++ b/src/main/java/jp/ngt/rtm/rail/TileEntityLargeRailBase.java @@ -211,7 +211,7 @@ private float[] getBlockHeights(int x, int y, int z, float defaultHeight) { //レールYawに対するベクトル角により左右位置を判断 boolean dirFlag = MathHelper.wrapAngleTo180_float(yaw2 - yaw) > 0.0F; double h2 = NGTMath.sin(cant) * len * (dirFlag ? -1.0F : 1.0F); - fa[i] += (float) (height - (double) y + h2 - 0.0625); + fa[i] = (float) (height - (double) y + h2 + defaultHeight - 0.0625); } } }