Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Oct 29, 2024
1 parent a6d8ba0 commit 37ba4eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void load() {

List<String> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;

Expand Down Expand Up @@ -97,7 +98,7 @@ public static Map<String, StructureData> loadStructures() {
for (var biome : biomes) {
String biomeKey = biome.unwrapKey().get().location().toString();

if(defaultBiomes.contains(biomeKey)) {
if (defaultBiomes.contains(biomeKey)) {
continue;
}

Expand All @@ -112,7 +113,7 @@ public static Map<String, StructureData> loadStructures() {
for (var biome : biomes) {
String biomeKey = biome.unwrapKey().get().location().toString();

if(defaultBiomes.contains(biomeKey)) {
if (defaultBiomes.contains(biomeKey)) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 37ba4eb

Please sign in to comment.