Skip to content

Commit 12fb2a8

Browse files
committed
Half firefly spawning density
1 parent 1b318ad commit 12fb2a8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
------------------------------------------------------
2+
Effective 2.4.6 (Alpha) - 1.21.1
3+
------------------------------------------------------
4+
- Fixed firefly dynamic lights causing framedrops
5+
- Reduced rain ripple default density to 1
6+
17
------------------------------------------------------
28
Effective 2.4.5 (Alpha) - 1.21.1
39
------------------------------------------------------

src/client/java/org/ladysnake/effective/mixin/ClientWorldMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected ClientWorldMixin(MutableWorldProperties properties, RegistryKey<World>
9090
if (EffectiveConfig.fireflyDensity > 0 && EffectiveUtils.isNightTime((ClientWorld) (Object) this)) {
9191
FireflySpawnSetting fireflySpawnSetting = SpawnSettings.FIREFLIES.get(biome.getKey().get());
9292
if (fireflySpawnSetting != null) {
93-
if (random.nextFloat() * 250f <= fireflySpawnSetting.spawnChance() * EffectiveConfig.fireflyDensity && pos.getY() > this.getSeaLevel()) {
93+
if (random.nextFloat() * 500f <= fireflySpawnSetting.spawnChance() * EffectiveConfig.fireflyDensity && pos.getY() > this.getSeaLevel()) {
9494
for (int y = this.getSeaLevel(); y <= this.getSeaLevel() * 2; y++) {
9595
pos.setY(y);
9696
pos2.setY(y - 1);

0 commit comments

Comments
 (0)