Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Kam committed 2026-02-25 04:31:32 -05:00
commit 008fca66bf
1 file changed
+8
@@ -299,6 +299,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