mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
Fixed allow-nether being ignored
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
0f394bd1f6
commit
20d9b64e16
@ -324,7 +324,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
if (fromWorld == toWorld) {
|
if (fromWorld == toWorld) {
|
||||||
entity.netServerHandler.teleport(to);
|
entity.netServerHandler.teleport(to);
|
||||||
} else {
|
} else {
|
||||||
server.getHandle().moveToWorld(entity, toWorld.dimension, to);
|
server.getHandle().moveToWorld(entity, toWorld.dimension, true, to);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user