Skip to content

Commit

Permalink
Update Crab.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Oct 18, 2023
1 parent 88c80be commit d633c14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/frozenblock/wilderwild/entity/Crab.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ public static boolean canSpawn(@NotNull EntityType<Crab> type, @NotNull ServerLe
return true;
}
Holder<Biome> biome = level.getBiome(pos);
int randomBound = 1;
int randomBound = 30;
if (!biome.is(WilderBiomeTags.HAS_COMMON_CRAB)) {
randomBound = 1;
randomBound = 100;
if (getCrabs(level.getLevel()) >= type.getCategory().getMaxInstancesPerChunk() / 3) {
return false;
}
Expand Down

0 comments on commit d633c14

Please sign in to comment.