mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-23 20:25:51 +01:00
fix bug when getting dim change spawn
This commit is contained in:
1 parent
a5936e04c0
commit
d11ce7512b
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user