diff --git a/common/src/main/java/com/faboslav/structurify/common/config/StructurifyConfig.java b/common/src/main/java/com/faboslav/structurify/common/config/StructurifyConfig.java index b6866c1..24cee43 100644 --- a/common/src/main/java/com/faboslav/structurify/common/config/StructurifyConfig.java +++ b/common/src/main/java/com/faboslav/structurify/common/config/StructurifyConfig.java @@ -117,7 +117,7 @@ public void load() { List biomes = new ArrayList<>(structureData.getDefaultBiomes()); - if(structureJson.has("biomes")) { + if (structureJson.has("biomes")) { var whitelistedBiomes = structureJson.getAsJsonArray("biomes").asList().stream().map(JsonElement::getAsString).collect(Collectors.toCollection(ArrayList::new)); whitelistedBiomes.removeAll(structureData.getDefaultBiomes()); whitelistedBiomes.stream().distinct().forEach(biomes::add); diff --git a/common/src/main/java/com/faboslav/structurify/common/config/data/WorldgenDataProvider.java b/common/src/main/java/com/faboslav/structurify/common/config/data/WorldgenDataProvider.java index 046a39a..2fea075 100644 --- a/common/src/main/java/com/faboslav/structurify/common/config/data/WorldgenDataProvider.java +++ b/common/src/main/java/com/faboslav/structurify/common/config/data/WorldgenDataProvider.java @@ -13,6 +13,7 @@ import net.minecraft.world.level.levelgen.structure.Structure; import net.minecraft.world.level.levelgen.structure.StructureSet; import net.minecraft.world.level.levelgen.structure.structures.JigsawStructure; + import java.lang.reflect.Field; import java.util.*; @@ -97,7 +98,7 @@ public static Map loadStructures() { for (var biome : biomes) { String biomeKey = biome.unwrapKey().get().location().toString(); - if(defaultBiomes.contains(biomeKey)) { + if (defaultBiomes.contains(biomeKey)) { continue; } @@ -112,7 +113,7 @@ public static Map loadStructures() { for (var biome : biomes) { String biomeKey = biome.unwrapKey().get().location().toString(); - if(defaultBiomes.contains(biomeKey)) { + if (defaultBiomes.contains(biomeKey)) { continue; } diff --git a/common/src/main/java/com/faboslav/structurify/common/mixin/plugin/StructurifyMixinPlugin.java b/common/src/main/java/com/faboslav/structurify/common/mixin/plugin/StructurifyMixinPlugin.java index eea7d2d..ac1255e 100644 --- a/common/src/main/java/com/faboslav/structurify/common/mixin/plugin/StructurifyMixinPlugin.java +++ b/common/src/main/java/com/faboslav/structurify/common/mixin/plugin/StructurifyMixinPlugin.java @@ -3,6 +3,7 @@ import org.objectweb.asm.tree.ClassNode; import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin; import org.spongepowered.asm.mixin.extensibility.IMixinInfo; + import java.util.List; import java.util.Set;