mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +01:00
Fixed NPE travelling to the nether from a custom world
This commit is contained in:
parent
197fdbd84c
commit
b9aaf3977c
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ public class ServerConfigurationManager {
|
||||||
int dimension = i;
|
int dimension = i;
|
||||||
WorldServer fromWorld = this.server.getWorldServer(entityplayer.dimension);
|
WorldServer fromWorld = this.server.getWorldServer(entityplayer.dimension);
|
||||||
WorldServer toWorld = null;
|
WorldServer toWorld = null;
|
||||||
if (dimension < 10) {
|
if (entityplayer.dimension < 10) {
|
||||||
for (WorldServer world : this.server.worlds) {
|
for (WorldServer world : this.server.worlds) {
|
||||||
if (world.dimension == dimension) {
|
if (world.dimension == dimension) {
|
||||||
toWorld = world;
|
toWorld = world;
|
||||||
|
|
Loading…
Add table
Reference in a new issue