mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 23:46:57 +01:00
Fixed NPE in ServerConfigurationManager when sometimes attempting to flee the End
This commit is contained in:
parent
5e43c61fad
commit
d36ac82c83
1 changed files with 3 additions and 1 deletions
|
@ -321,7 +321,9 @@ public class ServerConfigurationManager {
|
|||
toLocation = toWorld == null ? null : new Location(toWorld.getWorld(), (entityplayer.locX * blockRatio), entityplayer.locY, (entityplayer.locZ * blockRatio), entityplayer.yaw, entityplayer.pitch);
|
||||
} else {
|
||||
ChunkCoordinates coords = toWorld.d();
|
||||
toLocation = new Location(toWorld.getWorld(), coords.x, coords.y, coords.z, 90, 0);
|
||||
if (coords != null) {
|
||||
toLocation = new Location(toWorld.getWorld(), coords.x, coords.y, coords.z, 90, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue