summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2022-07-16 13:04:14 +0200
committerGitHub <noreply@github.com>2022-07-16 13:04:14 +0200
commit64a24a4c79ace77ff111f0b555ff1d9d942bf56e (patch)
tree9ab668e5ac829c7b09e7e9f457de2c0b73a8d903 /src/Blocks
parentItemHandler: Fix torch handler not being called (#5433) (diff)
downloadcuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar
cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.gz
cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.bz2
cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.lz
cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.xz
cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.zst
cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.zip
Diffstat (limited to 'src/Blocks')
-rw-r--r--src/Blocks/BlockRail.h4
1 files changed, 3 insertions, 1 deletions
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))