mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-18 02:22:32 +00:00
Merge remote-tracking branch 'origin/ver/6.5.0' into dev/7.0-2
This commit is contained in:
commit
b848ddabda
@ -189,6 +189,7 @@ public class TerraBukkitPlugin extends JavaPlugin {
|
|||||||
@Override
|
@Override
|
||||||
public @Nullable
|
public @Nullable
|
||||||
ChunkGenerator getDefaultWorldGenerator(@NotNull String worldName, String id) {
|
ChunkGenerator getDefaultWorldGenerator(@NotNull String worldName, String id) {
|
||||||
|
if (id == null || id.trim().equals("")) { return null; }
|
||||||
return new BukkitChunkGeneratorWrapper(generatorMap.computeIfAbsent(worldName, name -> {
|
return new BukkitChunkGeneratorWrapper(generatorMap.computeIfAbsent(worldName, name -> {
|
||||||
ConfigPack pack = platform.getConfigRegistry().getByID(id).orElseThrow(
|
ConfigPack pack = platform.getConfigRegistry().getByID(id).orElseThrow(
|
||||||
() -> new IllegalArgumentException("No such config pack \"" + id + "\""));
|
() -> new IllegalArgumentException("No such config pack \"" + id + "\""));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user