fix:Fix small gap between painting and block (issue #661)

This commit is contained in:
TheLordWolf-T-34-85 2026-03-06 12:06:19 +01:00
parent de46641cda
commit cab102757a

View file

@ -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;