Skip to content

Commit

Permalink
12
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Feb 3, 2025
1 parent 2877ba5 commit 5afba2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/frozenblock/wilderwild/entity/Firefly.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static boolean checkFireflySpawnRules(
if (!EntitySpawnReason.isSpawner(reason) && !WWEntityConfig.get().firefly.spawnFireflies) return false;
return (EntitySpawnReason.ignoresLightRequirements(reason) || level.getMaxLocalRawBrightness(pos) <= 13)
&& hasNearbyFireflyBush(level, pos, 3, 1)
&& !reachedNearbyFireflyLimit(level, pos, 4, 10);
&& !reachedNearbyFireflyLimit(level, pos, 2, 12);
}

@NotNull
Expand Down Expand Up @@ -167,7 +167,7 @@ private static boolean shouldSetHome(EntitySpawnReason reason) {

@Override
public int getMaxSpawnClusterSize() {
return 24;
return 12;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class WWSpawns {

public static void addBugs() {
BiomeModifications.addSpawn(BiomeSelectors.all(),
FrozenMobCategories.getCategory(WWConstants.MOD_ID, "firefly"), WWEntityTypes.FIREFLY, 1, 12, 24);
FrozenMobCategories.getCategory(WWConstants.MOD_ID, "firefly"), WWEntityTypes.FIREFLY, 1, 4, 12);

BiomeModifications.addSpawn(BiomeSelectors.tag(WWBiomeTags.HAS_BUTTERFLY),
FrozenMobCategories.getCategory(WWConstants.MOD_ID, "butterfly"), WWEntityTypes.BUTTERFLY, 1, 1, 1);
Expand Down

0 comments on commit 5afba2f

Please sign in to comment.