Skip to content

Commit

Permalink
Implement exclude list
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Jun 9, 2022
1 parent 9f72a92 commit 39720be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/girafi/waddles/init/PenguinSpawn.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public record PenguinBiomeModifier(HolderSet<Biome> includeList, HolderSet<Biome

@Override
public void modify(Holder<Biome> biome, Phase phase, ModifiableBiomeInfo.BiomeInfo.Builder builder) {
if (phase == Phase.ADD && this.includeList.contains(biome)) { //TODO Test
if (phase == Phase.ADD && this.includeList.contains(biome) && !this.excludeList.contains(biome)) {
builder.getMobSpawnSettings().addSpawn(this.spawn.type.getCategory(), this.spawn);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "waddles:penguin_spawn",
"spawn": {
"type": "waddles:adelie_penguin",
"weight": 100,
"weight": 8,
"minCount": 1,
"maxCount": 4
},
Expand Down

0 comments on commit 39720be

Please sign in to comment.