From 60c6831f5edf986e237f512c28e0ed59b904f998 Mon Sep 17 00:00:00 2001 From: "Joseph T. McQuigg" Date: Fri, 4 Oct 2024 15:25:08 -0400 Subject: [PATCH] Use Other Set Constructor for weight of 1 Signed-off-by: Joseph T. McQuigg --- .../worldgen/structure_set/GenerationsStructureSets.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/generations/gg/generations/structures/generationsstructures/worldgen/structure_set/GenerationsStructureSets.java b/common/src/main/java/generations/gg/generations/structures/generationsstructures/worldgen/structure_set/GenerationsStructureSets.java index f3da931..94735c4 100644 --- a/common/src/main/java/generations/gg/generations/structures/generationsstructures/worldgen/structure_set/GenerationsStructureSets.java +++ b/common/src/main/java/generations/gg/generations/structures/generationsstructures/worldgen/structure_set/GenerationsStructureSets.java @@ -35,15 +35,15 @@ public static void init() { register("pokeshops", structureHolderGetter -> new StructureSet( ImmutableList.of( - createStructureSelectionEntry(structureHolderGetter, GenerationsStructureSettings.SCARLET_POKECENTER, 1), - createStructureSelectionEntry(structureHolderGetter, GenerationsStructureSettings.LARGE_POKECENTER, 1) + createStructureSelectionEntry(structureHolderGetter, GenerationsStructureSettings.SCARLET_POKECENTER), + createStructureSelectionEntry(structureHolderGetter, GenerationsStructureSettings.LARGE_POKECENTER) ), createRandomLinearSpreadPlacement(400, 250, 293756737))); register("loot_balloon", structureHolderGetter -> new StructureSet( ImmutableList.of( createStructureSelectionEntry(structureHolderGetter,GenerationsStructureSettings.GREAT_BALLOON, 4), - createStructureSelectionEntry(structureHolderGetter,GenerationsStructureSettings.MASTER_BALLOON, 1), + createStructureSelectionEntry(structureHolderGetter,GenerationsStructureSettings.MASTER_BALLOON), createStructureSelectionEntry(structureHolderGetter,GenerationsStructureSettings.ULTRA_BALLOON, 2), createStructureSelectionEntry(structureHolderGetter,GenerationsStructureSettings.BEAST_BALLOON, 2), createStructureSelectionEntry(structureHolderGetter,GenerationsStructureSettings.MEOWTH_BALLOON, 3), @@ -78,7 +78,7 @@ public interface StructureSetFactory { * @param salt The salt for the structure set */ private static void register(String id, ResourceKey structure, int spacing, int seperation, int salt) { - register(id, structureHolderGetter -> new StructureSet(ImmutableList.of(createStructureSelectionEntry(structureHolderGetter, structure,1)), createRandomLinearSpreadPlacement(spacing, seperation, salt))); + register(id, structureHolderGetter -> new StructureSet(ImmutableList.of(createStructureSelectionEntry(structureHolderGetter, structure)), createRandomLinearSpreadPlacement(spacing, seperation, salt))); } /**