mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-14 06:36:17 +01:00
Temp fix to fix tests
This commit is contained in:
parent
cbf44cb918
commit
4ff1663353
@ -109,9 +109,9 @@ public class SimpleMVWorldManager implements MVWorldManager {
|
||||
@Override
|
||||
public void getDefaultWorldGenerators() {
|
||||
this.defaultGens = new HashMap<>();
|
||||
File[] files = server.getWorldContainer().listFiles((file, s) -> s.equalsIgnoreCase("bukkit.yml"));
|
||||
if (files != null && files.length == 1) {
|
||||
FileConfiguration bukkitConfig = YamlConfiguration.loadConfiguration(files[0]);
|
||||
File file = new File("bukkit.yml");
|
||||
if (file.isFile()) {
|
||||
FileConfiguration bukkitConfig = YamlConfiguration.loadConfiguration(file);
|
||||
if (bukkitConfig.isConfigurationSection("worlds")) {
|
||||
Set<String> keys = bukkitConfig.getConfigurationSection("worlds").getKeys(false);
|
||||
for (String key : keys) {
|
||||
|
Loading…
Reference in New Issue
Block a user