net/minecraft/server/level
This commit is contained in:
@@ -275,7 +275,7 @@ public abstract class Configurations<G, W> {
|
||||
}
|
||||
|
||||
public Path getWorldConfigFile(ServerLevel level) {
|
||||
return level.convertable.levelDirectory.path().resolve(this.worldConfigFileName);
|
||||
return level.levelStorageAccess.levelDirectory.path().resolve(this.worldConfigFileName);
|
||||
}
|
||||
|
||||
public static class ContextMap {
|
||||
|
||||
@@ -327,7 +327,7 @@ public class PaperConfigurations extends Configurations<GlobalConfiguration, Wor
|
||||
}
|
||||
|
||||
private static ContextMap createWorldContextMap(ServerLevel level) {
|
||||
return createWorldContextMap(level.convertable.levelDirectory.path(), level.serverLevelData.getLevelName(), level.dimension().location(), level.spigotConfig, level.registryAccess(), level.getGameRules());
|
||||
return createWorldContextMap(level.levelStorageAccess.levelDirectory.path(), level.serverLevelData.getLevelName(), level.dimension().location(), level.spigotConfig, level.registryAccess(), level.getGameRules());
|
||||
}
|
||||
|
||||
public static ContextMap createWorldContextMap(final Path dir, final String levelName, final ResourceLocation worldKey, final SpigotWorldConfig spigotConfig, final RegistryAccess registryAccess, final GameRules gameRules) {
|
||||
|
||||
Reference in New Issue
Block a user