From bb44b4186bd617281614c5f04329bd4221b08c0d Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 5 Apr 2026 10:55:30 +0300 Subject: [PATCH] fix entity bounding box check on block place --- src/objects/Entities.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/objects/Entities.cpp b/src/objects/Entities.cpp index c98349f3c..7d2db5b84 100644 --- a/src/objects/Entities.cpp +++ b/src/objects/Entities.cpp @@ -482,7 +482,9 @@ void Entities::render( bool Entities::hasBlockingInside(AABB aabb) { auto view = registry->view(); for (auto [entity, eid, body] : view.each()) { - if (eid.def.blocking && aabb.intersects(body.hitbox.getAABB(), -0.05f)) { + AABB bodyAABB(body.hitbox.getAABB()); + bodyAABB.scale({1, 0.95f, 1}); + if (eid.def.blocking && aabb.intersects(bodyAABB)) { return true; } }