Nether portals should now only work in the default world
Dieser Commit ist enthalten in:
Ursprung
bb16e6c5c1
Commit
197fdbd84c
@ -320,7 +320,7 @@ public class ServerConfigurationManager {
|
|||||||
Location toLocation = null;
|
Location toLocation = null;
|
||||||
|
|
||||||
if (toWorld != 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;
|
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);
|
toLocation = toWorld == null ? null : new Location(toWorld.getWorld(), (entityplayer.locX * blockRatio), entityplayer.locY, (entityplayer.locZ * blockRatio), entityplayer.yaw, entityplayer.pitch);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren