From f73e8d02f993a8a5fc15dd603cca274b70c322bd Mon Sep 17 00:00:00 2001 From: Kam Date: Wed, 25 Feb 2026 04:12:20 -0500 Subject: [PATCH] Update EntityAbilityDome.java --- src/main/java/kamkeel/npcs/entity/EntityAbilityDome.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/kamkeel/npcs/entity/EntityAbilityDome.java b/src/main/java/kamkeel/npcs/entity/EntityAbilityDome.java index 383f07246..3484b1228 100644 --- a/src/main/java/kamkeel/npcs/entity/EntityAbilityDome.java +++ b/src/main/java/kamkeel/npcs/entity/EntityAbilityDome.java @@ -297,6 +297,14 @@ public class EntityAbilityDome extends EntityAbilityBarrier { double surfaceX = posX + nx * pushDist; double surfaceY = posY + ny * pushDist - ent.height * 0.5; double surfaceZ = posZ + nz * pushDist; + + // Prevent grounded entities from being teleported below the floor. + // The spherical surface calculation can produce a Y below ground level + // near the dome's equator, and setPosition bypasses collision detection. + if (ent.onGround && surfaceY < ent.posY) { + surfaceY = ent.posY; + } + teleportEntity(ent, surfaceX, surfaceY, surfaceZ); // Cancel radial velocity and add corrective push