mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 11:38:29 +01:00
Nether portals should now only work in the default world
This commit is contained in:
parent
bb16e6c5c1
commit
197fdbd84c
@ -320,7 +320,7 @@ public class ServerConfigurationManager {
|
||||
Location toLocation = null;
|
||||
|
||||
if (toWorld != null) {
|
||||
if ((dimension == -1) || (dimension == 0)) {
|
||||
if (((dimension == -1) || (dimension == 0)) && ((entityplayer.dimension == -1) || (entityplayer.dimension == 0))) {
|
||||
double blockRatio = dimension == 0 ? 8 : 0.125;
|
||||
|
||||
toLocation = toWorld == null ? null : new Location(toWorld.getWorld(), (entityplayer.locX * blockRatio), entityplayer.locY, (entityplayer.locZ * blockRatio), entityplayer.yaw, entityplayer.pitch);
|
||||
|
Loading…
Reference in New Issue
Block a user