3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 12:30:06 +01:00

Load custom worlds from correct location

Dieser Commit ist enthalten in:
md_5 2019-05-12 16:59:21 +10:00
Ursprung 21dbe8ab2a
Commit a46ef53b75
2 geänderte Dateien mit 3 neuen und 11 gelöschten Zeilen

Datei anzeigen

@ -14,8 +14,9 @@
+ // CraftBukkit end
private final int d;
private final String e;
private final String f;
- private final String f;
- private final BiFunction<World, DimensionManager, ? extends WorldProvider> g;
+ public final String f;
+ public final BiFunction<World, DimensionManager, ? extends WorldProvider> g;
private final boolean h;
@ -36,15 +37,6 @@
}
public static DimensionManager a(Dynamic<?> dynamic) {
@@ -54,7 +58,7 @@
}
public String toString() {
- return a(this).toString();
+ return this.e + "(" + a(getType()) + ")"; // CraftBukkit
}
@Nullable
@@ -80,4 +84,12 @@
public <T> T a(DynamicOps<T> dynamicops) {
return dynamicops.createString(IRegistry.DIMENSION_TYPE.getKey(this).toString());

Datei anzeigen

@ -923,7 +923,7 @@ public final class CraftServer implements Server {
}
DimensionManager actualDimension = DimensionManager.a(creator.environment().getId());
DimensionManager internalDimension = DimensionManager.a(name, new DimensionManager(dimension, name, name, (w, manager) -> actualDimension.g.apply(w, manager), actualDimension.hasSkyLight(), actualDimension));
DimensionManager internalDimension = DimensionManager.a(name, new DimensionManager(dimension, actualDimension.c(), actualDimension.f, (w, manager) -> actualDimension.g.apply(w, manager), actualDimension.hasSkyLight(), actualDimension));
WorldServer internal = (WorldServer) new WorldServer(console, console.executorService, sdm, worlddata, internalDimension, console.getMethodProfiler(), getServer().worldLoadListenerFactory.create(11), creator.environment(), generator);
if (!(worlds.containsKey(name.toLowerCase(java.util.Locale.ENGLISH)))) {