Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
Load custom worlds from correct location
Dieser Commit ist enthalten in:
Ursprung
21dbe8ab2a
Commit
a46ef53b75
@ -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());
|
||||
|
@ -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)))) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren