We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da42d29 commit 8e69391Copy full SHA for 8e69391
1 file changed
src/main/java/com/volmit/rift/Rift.java
@@ -56,13 +56,22 @@ public void onEnable()
56
57
private void checkForBukkitWorlds() {
58
FileConfiguration fc = new YamlConfiguration();
59
+ Set<String> hit = new HashSet<>();
60
try {
61
fc.load(new File("bukkit.yml"));
62
searching: for(String i : fc.getKeys(true))
63
{
64
if(i.startsWith("worlds.")) {
65
String worldName = i.split("\\Q.\\E")[1];
- String generator = i.endsWith(".generator") ? fc.getString(i) : null;
66
+
67
68
+ if(hit.contains(worldName))
69
+ {
70
+ continue;
71
+ }
72
73
+ hit.add(worldName);
74
+ String generator = i.endsWith(".generator") ? fc.getString(i) : fc.getString("worlds." + worldName + ".generator");
75
76
if(generator != null && generator.startsWith("Iris"))
77
0 commit comments