Skip to content

Commit

Permalink
Use Other Set Constructor for weight of 1
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph T. McQuigg <[email protected]>
  • Loading branch information
JT122406 committed Oct 4, 2024
1 parent 22a298f commit 60c6831
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -78,7 +78,7 @@ public interface StructureSetFactory {
* @param salt The salt for the structure set
*/
private static void register(String id, ResourceKey<Structure> 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)));
}

/**
Expand Down

0 comments on commit 60c6831

Please sign in to comment.