From d11ce7512b97cbc95edce68bf5d192e2239b3cbf Mon Sep 17 00:00:00 2001 From: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com> Date: Fri, 30 Oct 2026 16:01:31 -0400 Subject: [PATCH] fix bug when getting dim change spawn --- Minecraft.World/Entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.World/Entity.cpp b/Minecraft.World/Entity.cpp index eb1c7364..fe20af09 100644 --- a/Minecraft.World/Entity.cpp +++ b/Minecraft.World/Entity.cpp @@ -2160,7 +2160,7 @@ void Entity::changeDimension(int i) if (lastDimension == 1 && i == 1) { Pos *spawnPos = newLevel->getSharedSpawnPos(); - spawnPos->y = level->getTopSolidBlock(spawnPos->x, spawnPos->z); + spawnPos->y = newLevel->getTopSolidBlock(spawnPos->x, spawnPos->z); newEntity->moveTo(spawnPos->x, spawnPos->y, spawnPos->z, newEntity->yRot, newEntity->xRot); delete spawnPos; }