mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 18:31:29 +01:00
Load custom worlds from correct location
This commit is contained in:
parent
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)))) {
|
||||
|
Loading…
Reference in New Issue
Block a user