From 64a24a4c79ace77ff111f0b555ff1d9d942bf56e Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sat, 16 Jul 2022 12:04:14 +0100 Subject: ClientHandle: Fix block interaction regressions (#5431) * ClientHandle: Fix block interaction regressions * Fix reach distance being halved. * Fix fire extinguish not working, fixes #5422. * AddFaceDirection: deprecate non-vector version --- src/Blocks/BlockRail.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Blocks') diff --git a/src/Blocks/BlockRail.h b/src/Blocks/BlockRail.h index d822e728f..6c4367334 100644 --- a/src/Blocks/BlockRail.h +++ b/src/Blocks/BlockRail.h @@ -326,8 +326,10 @@ private: static bool IsNotConnected(cChunkInterface & a_ChunkInterface, Vector3i a_Pos, eBlockFace a_BlockFace, char a_Pure = 0) { - AddFaceDirection(a_Pos.x, a_Pos.y, a_Pos.z, a_BlockFace, false); + a_Pos = AddFaceDirection(a_Pos, a_BlockFace, false); + NIBBLETYPE Meta; + if (!IsBlockRail(a_ChunkInterface.GetBlock(a_Pos))) { if (!IsBlockRail(a_ChunkInterface.GetBlock(a_Pos + Vector3i(0, 1, 0))) || (a_Pure != E_PURE_UPDOWN)) -- cgit v1.2.3