From a477671c0315766cc597901e2bcabe62675df957 Mon Sep 17 00:00:00 2001 From: NoahBeech Date: Tue, 8 Sep 2020 16:23:18 -0400 Subject: [PATCH] =?UTF-8?q?Fixing=20logic=20in=20getCurrentRailPosition=20?= =?UTF-8?q?to=20correctly=20identify=20the=20rail=E2=80=A6=20(#7276)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/extensions/IForgeEntityMinecart.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraftforge/common/extensions/IForgeEntityMinecart.java b/src/main/java/net/minecraftforge/common/extensions/IForgeEntityMinecart.java index 58ce406d1..0cc1eeda2 100644 --- a/src/main/java/net/minecraftforge/common/extensions/IForgeEntityMinecart.java +++ b/src/main/java/net/minecraftforge/common/extensions/IForgeEntityMinecart.java @@ -55,8 +55,8 @@ public interface IForgeEntityMinecart int x = MathHelper.floor(getMinecart().getPosX()); int y = MathHelper.floor(getMinecart().getPosY()); int z = MathHelper.floor(getMinecart().getPosZ()); - BlockPos pos = new BlockPos(x, y - 1, z); - if (getMinecart().world.getBlockState(pos).func_235714_a_(BlockTags.RAILS)) pos = pos.down(); + BlockPos pos = new BlockPos(x, y, z); + if (getMinecart().world.getBlockState(pos.down()).func_235714_a_(BlockTags.RAILS)) pos = pos.down(); return pos; }