Skip to content

Commit 9789625

Browse files
committed
fix default config generation
1 parent 2e92748 commit 9789625

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/illegals/placedblocks/RemoveUnnaturalSpawners.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@ public RemoveUnnaturalSpawners() {
4646
.filter(XEntityType::isSupported)
4747
.map(XEntityType::get)
4848
.map(Enum::name)
49-
.collect(Collectors.toSet()));
49+
.collect(Collectors.toList()));
5050
defaults.put("world_nether", Stream.of(
5151
XEntityType.BLAZE,
5252
XEntityType.MAGMA_CUBE)
5353
.filter(XEntityType::isSupported)
5454
.map(XEntityType::get)
5555
.map(Enum::name)
56-
.collect(Collectors.toSet()));
56+
.collect(Collectors.toList()));
5757
defaults.put("world_the_end", Stream.of(
5858
XEntityType.SKELETON,
5959
XEntityType.SPIDER)
6060
.filter(XEntityType::isSupported)
6161
.map(XEntityType::get)
6262
.map(Enum::name)
63-
.collect(Collectors.toSet()));
63+
.collect(Collectors.toList()));
6464

6565
ConfigSection section = config.getConfigSection(configPath + ".natural-spawner-types-per-world", defaults,
6666
"You can add or remove as much world names here as you want.");

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/illegals/placedblocks/RemoveUnnaturalSpawners.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.cryptomorin.xseries.XEntityType;
44
import com.cryptomorin.xseries.XMaterial;
5-
import com.google.common.collect.Sets;
65
import io.github.thatsmusic99.configurationmaster.api.ConfigSection;
76
import me.xginko.aef.AnarchyExploitFixes;
87
import me.xginko.aef.modules.AEFModule;
@@ -48,21 +47,21 @@ public RemoveUnnaturalSpawners() {
4847
.filter(XEntityType::isSupported)
4948
.map(XEntityType::get)
5049
.map(Enum::name)
51-
.collect(Collectors.toSet()));
50+
.collect(Collectors.toList()));
5251
defaults.put("world_nether", Stream.of(
5352
XEntityType.BLAZE,
5453
XEntityType.MAGMA_CUBE)
5554
.filter(XEntityType::isSupported)
5655
.map(XEntityType::get)
5756
.map(Enum::name)
58-
.collect(Collectors.toSet()));
57+
.collect(Collectors.toList()));
5958
defaults.put("world_the_end", Stream.of(
6059
XEntityType.SKELETON,
6160
XEntityType.SPIDER)
6261
.filter(XEntityType::isSupported)
6362
.map(XEntityType::get)
6463
.map(Enum::name)
65-
.collect(Collectors.toSet()));
64+
.collect(Collectors.toList()));
6665

6766
ConfigSection section = config.getConfigSection(configPath + ".natural-spawner-types-per-world", defaults,
6867
"You can add or remove as much world names here as you want.");

0 commit comments

Comments
 (0)