net/minecraft/server/level

This commit is contained in:
Bjarne Koll
2024-12-15 05:32:25 +01:00
parent 0262d9a165
commit 35afd218f5
19 changed files with 3854 additions and 4329 deletions

View File

@@ -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 {

View File

@@ -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) {