From cab102757a4d476537119dd253499c8cfb125b8d Mon Sep 17 00:00:00 2001 From: TheLordWolf-T-34-85 <94191402+TheLordWolf@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:06:19 +0100 Subject: [PATCH] fix:Fix small gap between painting and block (issue #661) --- Minecraft.World/HangingEntity.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Minecraft.World/HangingEntity.cpp b/Minecraft.World/HangingEntity.cpp index 26261710f..2ba17b5e5 100644 --- a/Minecraft.World/HangingEntity.cpp +++ b/Minecraft.World/HangingEntity.cpp @@ -61,6 +61,11 @@ void HangingEntity::setDir(int dir) float fOffs = 0.5f + 1.0f / 16.0f; + if (this->GetType() == eTYPE_PAINTING) + { + fOffs = 0.5f + 1.0f / 32.0f; //dividing by 16.0f introduce a small gap between the block and the painting. See https://github.com/smartcmd/MinecraftConsoles/issues/661 + } + if (dir == Direction::NORTH) z -= fOffs; if (dir == Direction::WEST) x -= fOffs; if (dir == Direction::SOUTH) z += fOffs;