Merge remote-tracking branch 'origin/ver/6.5.0' into dev/7.0-2

This commit is contained in:
duplexsystem 2024-03-02 22:18:54 -07:00
commit b848ddabda

View File

@ -189,6 +189,7 @@ public class TerraBukkitPlugin extends JavaPlugin {
@Override
public @Nullable
ChunkGenerator getDefaultWorldGenerator(@NotNull String worldName, String id) {
if (id == null || id.trim().equals("")) { return null; }
return new BukkitChunkGeneratorWrapper(generatorMap.computeIfAbsent(worldName, name -> {
ConfigPack pack = platform.getConfigRegistry().getByID(id).orElseThrow(
() -> new IllegalArgumentException("No such config pack \"" + id + "\""));