Skip to content

Commit

Permalink
only gargle bubbles if gargling is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Nov 29, 2023
1 parent a2daec1 commit 6f80c14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Bug Fixes & Changes
- Removed the custom distance detection from Palm Crowns
- Added Palm Crowns to tags it was missing from
- Added a translation string for Coconut projectiles
- Fixed compatibility between Wilder Wild's stripped logs and Create
- Fixed compatibility between Wilder Wild's Stripped Logs and Create

- Milkweed now plays a sound when rustled
- Milkweed can now be sheared with a Dispenser
Expand All @@ -49,6 +49,7 @@ Bug Fixes & Changes

- Osseous Sculk will now cover their branches in Sculk Veins when its base is converted to Sculk
- Increased the chances of larger Oseeous Sculk generating during worldgen
- Sculk Shriekers will now only create Sculk Bubbles underwater if the Shrieker Gargling config is enabled
- Stone Chests will now interact with Redstone Comparators, outputting a signal based on how high their lid is lifted ([#319](https://github.com/FrozenBlock/WilderWild/issues/319))

- The config will now sync between server and client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package net.frozenblock.wilderwild.mixin.sculk;

import net.frozenblock.lib.math.api.AdvancedMath;
import net.frozenblock.wilderwild.config.BlockConfig;
import net.frozenblock.wilderwild.misc.interfaces.SculkShriekerTickInterface;
import net.frozenblock.wilderwild.networking.WilderNetworking;
import net.frozenblock.wilderwild.registry.RegisterProperties;
Expand Down Expand Up @@ -70,7 +71,7 @@ public abstract class SculkShriekerBlockEntityMixin implements SculkShriekerTick
if (shrieker.getBlockState().getValue(RegisterProperties.SOULS_TAKEN) == 2) {
info.cancel();
} else {
if (shrieker.getBlockState().getValue(BlockStateProperties.WATERLOGGED)) {
if (BlockConfig.get().shriekerGargling && shrieker.getBlockState().getValue(BlockStateProperties.WATERLOGGED)) {
this.wilderWild$bubbles = 50;
}
}
Expand Down

0 comments on commit 6f80c14

Please sign in to comment.