Skip to content

Commit ca76b52

Browse files
committed
Switch to native Forge config system
- Switched from MidnightLib to the native Forge config system, as the library does not support future versions of LexForge - Lowered defaultRequire to 0 to avoid crashes even when mixins fail to apply - Fixed Forge refmap warning - Updated GitHub workflow
1 parent e2ae88f commit ca76b52

17 files changed

Lines changed: 151 additions & 128 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,21 @@
1-
# Automatically build the project and run any configured tests for every push
2-
# and submitted pull request. This can help catch issues that only occur on
3-
# certain platforms or Java versions, and provides a first line of defence
4-
# against bad commits.
5-
61
name: build
72
on: [pull_request, push]
83

94
jobs:
105
build:
116
name: Build
12-
strategy:
13-
matrix:
14-
# Use these Java versions
15-
java: [
16-
17, # Current Java LTS & minimum supported by Minecraft
17-
]
18-
# and run on both Linux and Windows
19-
os: [ubuntu-latest, windows-latest]
20-
runs-on: ${{ matrix.os }}
7+
runs-on: ubuntu-latest
218
steps:
229
- name: Checkout repository
2310
uses: actions/checkout@v4
2411
with:
2512
show-progress: false
2613
- name: Validate gradle wrapper
2714
uses: gradle/wrapper-validation-action@v2
28-
- name: Setup jdk ${{ matrix.java }}
15+
- name: Setup JDK 21
2916
uses: actions/setup-java@v4
3017
with:
31-
java-version: ${{ matrix.java }}
18+
java-version: 21
3219
distribution: temurin
3320
- name: Setup Gradle
3421
uses: gradle/actions/setup-gradle@v3
@@ -41,14 +28,12 @@ jobs:
4128
- name: Build
4229
run: ./gradlew build
4330
- name: Capture fabric build artifact
44-
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
4531
uses: actions/upload-artifact@v4
4632
with:
47-
name: "Make Bubbles Pop Fabric 1.21.2-1.21.4 (Unzip Me)"
33+
name: "Make Bubbles Pop Fabric for Minecraft 1.21.2-1.21.4 (Unzip Me)"
4834
path: fabric/build/libs/make_bubbles_pop-*.jar
4935
- name: Capture forge build artifact
50-
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
5136
uses: actions/upload-artifact@v4
5237
with:
53-
name: "Make Bubbles Pop Forge 1.21.2-1.21.4 (Unzip Me)"
38+
name: "Make Bubbles Pop Forge for Minecraft 1.21.2-1.21.4 (Unzip Me)"
5439
path: forge/build/libs/make_bubbles_pop-*.jar

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Fixes [MC-132067](https://bugs.mojang.com/browse/MC-132067).
2828

2929
Download the latest release from [here](https://github.com/Tschipcraft/fabric_make_bubbles_pop_mod/releases/latest) and put the .jar file into the `mods` folder in your Minecraft directory.
3030

31+
To configure Make Bubbles Pop, install [MidnightLib](https://modrinth.com/mod/midnightlib) for Fabric or [Configured](https://www.curseforge.com/minecraft/mc-mods/configured) for Forge alongside it.
32+
3133
This mod is also available on Modrinth and CurseForge!
3234

3335
<a href="https://modrinth.com/mod/make_bubbles_pop">

fabric/src/main/resources/fabric.mod.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"depends": {
1313
"fabricloader": ">=0.14.17",
1414
"fabric": "*",
15-
"minecraft": ">=1.19.4",
16-
"java": ">=17"
15+
"minecraft": ">=1.21.2",
16+
"java": ">=21"
1717
},
1818
"id": "make_bubbles_pop",
1919
"version": "${version}-fabric",
@@ -26,7 +26,7 @@
2626
],
2727
"contact": {
2828
"homepage": "https://tschipcraft.ddns.net/make_bubbles_pop.html",
29-
"sources": "https://github.com/Tschipcraft/make_bubbles_pop",
29+
"sources": "https://github.com/Tschipcraft/make_bubbles_pop/tree/1.21.2-1.21.4",
3030
"issues": "https://github.com/Tschipcraft/make_bubbles_pop/issues"
3131
},
3232
"recommends": {

fabric/src/main/resources/make_bubbles_pop.mixins.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"required": true,
33
"minVersion": "0.8",
44
"package": "net.tschipcraft.make_bubbles_pop.mixin",
5-
"compatibilityLevel": "JAVA_17",
5+
"compatibilityLevel": "JAVA_21",
66
"client": [
77
"client.BubblePop",
88
"client.BubbleColumnPop",
@@ -14,6 +14,6 @@
1414
"client.ExplosionEmitterBubble"
1515
],
1616
"injectors": {
17-
"defaultRequire": 1
17+
"defaultRequire": 0
1818
}
1919
}

forge/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,5 +253,5 @@ sourceSets.each {
253253
apply plugin: 'org.spongepowered.mixin'
254254

255255
mixin {
256-
add sourceSets.main, "${modid}.refmap.json"
256+
add sourceSets.main, "${modid}-refmap.json"
257257
}

forge/src/main/java/net/tschipcraft/make_bubbles_pop/MakeBubblesPop.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package net.tschipcraft.make_bubbles_pop;
22

33
import com.mojang.logging.LogUtils;
4-
import eu.midnightdust.lib.config.MidnightConfig;
5-
import net.minecraftforge.client.ConfigScreenHandler;
64
import net.minecraftforge.common.MinecraftForge;
75
import net.minecraftforge.eventbus.api.IEventBus;
86
import net.minecraftforge.fml.ModList;
9-
import net.minecraftforge.fml.ModLoadingContext;
107
import net.minecraftforge.fml.common.Mod;
8+
import net.minecraftforge.fml.config.ModConfig;
119
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
1210
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
1311
import org.slf4j.Logger;
@@ -20,30 +18,24 @@ public class MakeBubblesPop {
2018
// Directly reference a slf4j logger
2119
private static final Logger LOGGER = LogUtils.getLogger();
2220

23-
public static final boolean MIDNIGHTLIB_INSTALLED = ModList.get().isLoaded("midnightlib");
21+
// Compatibility flags
22+
public static final boolean COMPAT_PARTICLE_TWEAKS = ModList.get().isLoaded("particletweaks");
2423

2524

26-
public MakeBubblesPop() {
27-
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
25+
public MakeBubblesPop(FMLJavaModLoadingContext context) {
26+
IEventBus modEventBus = context.getModEventBus();
2827

2928
// Register the setup method for modloading
3029
modEventBus.addListener(this::setup);
3130

3231
// Register ourselves for server and other game events we are interested in
3332
MinecraftForge.EVENT_BUS.register(this);
33+
34+
// Register config
35+
context.registerConfig(ModConfig.Type.CLIENT, MakeBubblesPopConfig.SPEC);
3436
}
3537

3638
private void setup(final FMLCommonSetupEvent event) {
37-
if (MIDNIGHTLIB_INSTALLED) {
38-
// Use MidnightLib features
39-
LOGGER.info("MidnightLib detected!");
40-
MakeBubblesPopConfig.init(MODID, MakeBubblesPopConfig.class);
41-
ModLoadingContext.get().registerExtensionPoint(ConfigScreenHandler.ConfigScreenFactory.class, () -> {
42-
return new ConfigScreenHandler.ConfigScreenFactory((client, parent) -> {
43-
return MidnightConfig.getScreen(parent, MODID);
44-
});
45-
});
46-
}
4739
LOGGER.info("Make Bubbles Pop by Tschipcraft initialized!");
4840
}
4941

Lines changed: 97 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,101 @@
11
package net.tschipcraft.make_bubbles_pop;
22

3-
import eu.midnightdust.lib.config.MidnightConfig;
4-
5-
public class MakeBubblesPopConfig extends MidnightConfig {
6-
7-
@Entry
8-
public static boolean POP_PARTICLE_ENABLED = true;
9-
10-
// Show this entry with percentage if possible
11-
@Entry(isSlider = true, min = 0F, max = 1F, precision = 100)
12-
public static float BUBBLE_POP_VOLUME = 0.1F;
13-
14-
@Entry
15-
public static boolean POPPED_BUBBLES_MAINTAIN_VELOCITY = false;
16-
17-
18-
@Comment(centered = true)
19-
public static Comment empty;
20-
21-
@Comment(centered = true)
22-
public static Comment additional_features;
23-
24-
@Entry
25-
public static boolean BUBBLE_PHYSICS_ENABLED = true;
26-
27-
@Entry(isSlider = true, min = 1D, max = 100D, precision = 2)
28-
public static double BUBBLE_LIFETIME_MULTIPLIER = 32D;
29-
30-
@Entry
31-
public static boolean BIOME_COLORS_ENABLED = true;
32-
33-
// Show this entry with percentage if possible
34-
@Entry(isSlider = true, min = 0F, max = 1F, precision = 100)
35-
public static float BIOME_COLOR_INTENSITY = 0.65F;
36-
37-
38-
@Entry
39-
public static boolean CHEST_BUBBLES_ENABLED = true;
40-
41-
@Entry
42-
public static boolean BARREL_BUBBLES_ENABLED = true;
43-
44-
@Entry
45-
public static boolean CONTAINER_SOUND_ENABLED = true;
46-
47-
@Entry
48-
public static boolean EXPLOSION_BUBBLES_ENABLED = true;
3+
import net.minecraftforge.common.ForgeConfigSpec;
4+
import net.minecraftforge.eventbus.api.SubscribeEvent;
5+
import net.minecraftforge.fml.common.Mod;
6+
import net.minecraftforge.fml.event.config.ModConfigEvent;
7+
8+
@Mod.EventBusSubscriber(modid = MakeBubblesPop.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
9+
public class MakeBubblesPopConfig {
10+
11+
private static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder();
12+
13+
private static final ForgeConfigSpec.BooleanValue POP_PARTICLE_ENABLED_CONF = BUILDER
14+
.translation("make_bubbles_pop.midnightconfig.POP_PARTICLE_ENABLED")
15+
.comment("Default: true")
16+
.define("POP_PARTICLE_ENABLED", true);
17+
18+
private static final ForgeConfigSpec.DoubleValue BUBBLE_POP_VOLUME_CONF = BUILDER
19+
.translation("make_bubbles_pop.midnightconfig.BUBBLE_POP_VOLUME")
20+
.comment("Default: §b10%§f")
21+
.defineInRange("BUBBLE_POP_VOLUME", 0.1D, 0D, 1D);
22+
23+
private static final ForgeConfigSpec.BooleanValue POPPED_BUBBLES_MAINTAIN_VELOCITY_CONF = BUILDER
24+
.translation("make_bubbles_pop.midnightconfig.POPPED_BUBBLES_MAINTAIN_VELOCITY")
25+
.comment("If enabled, popped bubbles will maintain their velocity. Default: false")
26+
.define("POPPED_BUBBLES_MAINTAIN_VELOCITY", false);
27+
28+
private static final ForgeConfigSpec.BooleanValue BUBBLE_PHYSICS_ENABLED_CONF = BUILDER
29+
.translation("make_bubbles_pop.midnightconfig.BUBBLE_PHYSICS_ENABLED")
30+
.comment("If enabled, bubbles will be affected by physics when colliding with blocks or entities. Default: true")
31+
.define("BUBBLE_PHYSICS_ENABLED", true);
32+
33+
private static final ForgeConfigSpec.DoubleValue BUBBLE_LIFETIME_MULTIPLIER_CONF = BUILDER
34+
.translation("make_bubbles_pop.midnightconfig.BUBBLE_LIFETIME_MULTIPLIER")
35+
.comment("The time it takes for a bubble to pop underwater. \nBy default, this is set longer than in vanilla to allow bubbles to reach the water surface. \nDefault: §b32.0§f §7(Vanilla: 8.0)§f")
36+
.defineInRange("BUBBLE_LIFETIME_MULTIPLIER", 32D, 1D, 100D);
37+
38+
private static final ForgeConfigSpec.BooleanValue BIOME_COLORS_ENABLED_CONF = BUILDER
39+
.translation("make_bubbles_pop.midnightconfig.BIOME_COLORS_ENABLED")
40+
.comment("If enabled, bubbles will have a color based on the biome they are in. Default: true")
41+
.define("BIOME_COLORS_ENABLED", true);
42+
43+
private static final ForgeConfigSpec.DoubleValue BIOME_COLOR_INTENSITY_CONF = BUILDER
44+
.translation("make_bubbles_pop.midnightconfig.BIOME_COLOR_INTENSITY")
45+
.comment("Default: §b65%§f")
46+
.defineInRange("BIOME_COLOR_INTENSITY", 0.65D, 0D, 1D);
47+
48+
private static final ForgeConfigSpec.BooleanValue CHEST_BUBBLES_ENABLED_CONF = BUILDER
49+
.translation("make_bubbles_pop.midnightconfig.CHEST_BUBBLES_ENABLED")
50+
.comment("If enabled, bubbles will appear when opening chests underwater. Default: true")
51+
.define("CHEST_BUBBLES_ENABLED", true);
52+
53+
private static final ForgeConfigSpec.BooleanValue BARREL_BUBBLES_ENABLED_CONF = BUILDER
54+
.translation("make_bubbles_pop.midnightconfig.BARREL_BUBBLES_ENABLED")
55+
.comment("If enabled, bubbles will appear when opening barrels underwater. Default: true")
56+
.define("BARREL_BUBBLES_ENABLED", true);
57+
58+
private static final ForgeConfigSpec.BooleanValue CONTAINER_SOUND_ENABLED_CONF = BUILDER
59+
.translation("make_bubbles_pop.midnightconfig.CONTAINER_SOUND_ENABLED")
60+
.comment("If enabled, a sound will play when opening chests or barrels underwater. Default: true")
61+
.define("CONTAINER_SOUND_ENABLED", true);
62+
63+
private static final ForgeConfigSpec.BooleanValue EXPLOSION_BUBBLES_ENABLED_CONF = BUILDER
64+
.translation("make_bubbles_pop.midnightconfig.EXPLOSION_BUBBLES_ENABLED")
65+
.comment("If enabled, bubbles will appear when an explosion occurs underwater. Default: true")
66+
.define("EXPLOSION_BUBBLES_ENABLED", true);
67+
68+
public static final ForgeConfigSpec SPEC = BUILDER.build();
69+
70+
71+
// Config values
72+
public static boolean POP_PARTICLE_ENABLED;
73+
public static float BUBBLE_POP_VOLUME;
74+
public static boolean POPPED_BUBBLES_MAINTAIN_VELOCITY;
75+
76+
public static boolean BUBBLE_PHYSICS_ENABLED;
77+
public static double BUBBLE_LIFETIME_MULTIPLIER;
78+
public static boolean BIOME_COLORS_ENABLED;
79+
public static float BIOME_COLOR_INTENSITY;
80+
81+
public static boolean CHEST_BUBBLES_ENABLED;
82+
public static boolean BARREL_BUBBLES_ENABLED;
83+
public static boolean CONTAINER_SOUND_ENABLED;
84+
public static boolean EXPLOSION_BUBBLES_ENABLED;
85+
86+
@SubscribeEvent
87+
static void onLoad(final ModConfigEvent event) {
88+
POP_PARTICLE_ENABLED = POP_PARTICLE_ENABLED_CONF.get();
89+
BUBBLE_POP_VOLUME = BUBBLE_POP_VOLUME_CONF.get().floatValue();
90+
POPPED_BUBBLES_MAINTAIN_VELOCITY = POPPED_BUBBLES_MAINTAIN_VELOCITY_CONF.get();
91+
BUBBLE_PHYSICS_ENABLED = BUBBLE_PHYSICS_ENABLED_CONF.get();
92+
BUBBLE_LIFETIME_MULTIPLIER = BUBBLE_LIFETIME_MULTIPLIER_CONF.get();
93+
BIOME_COLORS_ENABLED = BIOME_COLORS_ENABLED_CONF.get();
94+
BIOME_COLOR_INTENSITY = BIOME_COLOR_INTENSITY_CONF.get().floatValue();
95+
CHEST_BUBBLES_ENABLED = CHEST_BUBBLES_ENABLED_CONF.get();
96+
BARREL_BUBBLES_ENABLED = BARREL_BUBBLES_ENABLED_CONF.get();
97+
CONTAINER_SOUND_ENABLED = CONTAINER_SOUND_ENABLED_CONF.get();
98+
EXPLOSION_BUBBLES_ENABLED = EXPLOSION_BUBBLES_ENABLED_CONF.get();
99+
}
49100

50101
}

forge/src/main/java/net/tschipcraft/make_bubbles_pop/impl/BarrelBubbler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import net.minecraft.world.level.Level;
1010
import net.minecraftforge.api.distmarker.Dist;
1111
import net.minecraftforge.api.distmarker.OnlyIn;
12-
import net.tschipcraft.make_bubbles_pop.MakeBubblesPop;
1312
import net.tschipcraft.make_bubbles_pop.MakeBubblesPopConfig;
1413

1514
@OnlyIn(Dist.CLIENT)
@@ -20,7 +19,7 @@ private BarrelBubbler() {
2019
}
2120

2221
public static void spawnBubbles(Level world, BlockPos pos, Direction facing, RandomSource random) {
23-
if (world != null && world.isClientSide && (!MakeBubblesPop.MIDNIGHTLIB_INSTALLED || MakeBubblesPopConfig.BARREL_BUBBLES_ENABLED)) {
22+
if (world != null && world.isClientSide && (MakeBubblesPopConfig.BARREL_BUBBLES_ENABLED)) {
2423
if (facing != Direction.DOWN) {
2524
for (int i = 0; i < 6 + random.nextInt(12); i++) {
2625
float xOffset = 0F;
@@ -73,7 +72,7 @@ public static void spawnBubbles(Level world, BlockPos pos, Direction facing, Ran
7372
world.addParticle(ParticleTypes.BUBBLE, pos.getX() + xOffset + xOffsetRand, pos.getY() + yOffset + yOffsetRand, pos.getZ() + zOffset + zOffsetRand, xVelocityRand, 0.05F + random.nextFloat() * 0.05F, zVelocityRand);
7473
}
7574
// Play sound
76-
if (!MakeBubblesPop.MIDNIGHTLIB_INSTALLED || MakeBubblesPopConfig.CONTAINER_SOUND_ENABLED) {
75+
if (MakeBubblesPopConfig.CONTAINER_SOUND_ENABLED) {
7776
world.playLocalSound(pos.getX(), pos.getY(), pos.getZ(), SoundEvents.BUBBLE_COLUMN_WHIRLPOOL_AMBIENT, SoundSource.AMBIENT, 0.3F + (random.nextFloat() * 0.1F), 1.3F + (random.nextFloat() * 0.3F), false);
7877
}
7978
}

forge/src/main/java/net/tschipcraft/make_bubbles_pop/impl/BubbleUtil.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import net.minecraft.world.level.Level;
1010
import net.minecraftforge.api.distmarker.Dist;
1111
import net.minecraftforge.api.distmarker.OnlyIn;
12-
import net.tschipcraft.make_bubbles_pop.MakeBubblesPop;
1312
import net.tschipcraft.make_bubbles_pop.MakeBubblesPopConfig;
1413

1514
@OnlyIn(Dist.CLIENT)
@@ -23,25 +22,25 @@ private BubbleUtil() {
2322
* Add a bubble pop particle and sound at the specified location in the world.
2423
*/
2524
public static void popBubble(Level world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) {
26-
if (!MakeBubblesPop.MIDNIGHTLIB_INSTALLED || MakeBubblesPopConfig.POP_PARTICLE_ENABLED) {
25+
if (MakeBubblesPopConfig.POP_PARTICLE_ENABLED) {
2726
world.addParticle(ParticleTypes.BUBBLE_POP, x, y, z,
28-
!MakeBubblesPop.MIDNIGHTLIB_INSTALLED || MakeBubblesPopConfig.POPPED_BUBBLES_MAINTAIN_VELOCITY ? velocityX : 0,
29-
!MakeBubblesPop.MIDNIGHTLIB_INSTALLED || MakeBubblesPopConfig.POPPED_BUBBLES_MAINTAIN_VELOCITY ? velocityY : 0,
30-
!MakeBubblesPop.MIDNIGHTLIB_INSTALLED || MakeBubblesPopConfig.POPPED_BUBBLES_MAINTAIN_VELOCITY ? velocityZ : 0
27+
MakeBubblesPopConfig.POPPED_BUBBLES_MAINTAIN_VELOCITY ? velocityX : 0D,
28+
MakeBubblesPopConfig.POPPED_BUBBLES_MAINTAIN_VELOCITY ? velocityY : 0D,
29+
MakeBubblesPopConfig.POPPED_BUBBLES_MAINTAIN_VELOCITY ? velocityZ : 0D
3130
);
32-
world.playLocalSound(x, y, z, SoundEvents.BUBBLE_COLUMN_BUBBLE_POP, SoundSource.AMBIENT, (MakeBubblesPop.MIDNIGHTLIB_INSTALLED ? MakeBubblesPopConfig.BUBBLE_POP_VOLUME : 0.1F) - (world.random.nextFloat() * 0.1F), 0.85F + (world.random.nextFloat() * 0.3F), false);
31+
world.playLocalSound(x, y, z, SoundEvents.BUBBLE_COLUMN_BUBBLE_POP, SoundSource.AMBIENT, (MakeBubblesPopConfig.BUBBLE_POP_VOLUME) - (world.random.nextFloat() * 0.1F), 0.85F + (world.random.nextFloat() * 0.3F), false);
3332
}
3433
}
3534

3635
/**
3736
* Tint the calling bubble particle based on the water color.
3837
*/
3938
public static void tintBubble(Level world, double x, double y, double z, TextureSheetParticle particle) {
40-
if (!MakeBubblesPop.MIDNIGHTLIB_INSTALLED || MakeBubblesPopConfig.BIOME_COLORS_ENABLED) {
39+
if (MakeBubblesPopConfig.BIOME_COLORS_ENABLED) {
4140
// Tint bubbles based on the water color
4241
int waterColor = BiomeColors.getAverageWaterColor(world, BlockPos.containing(x, y, z));
4342

44-
float intensity = (MakeBubblesPop.MIDNIGHTLIB_INSTALLED ? MakeBubblesPopConfig.BIOME_COLOR_INTENSITY : 0.65F);
43+
float intensity = (MakeBubblesPopConfig.BIOME_COLOR_INTENSITY);
4544
float whiteMix = 1F - intensity;
4645
float cr = whiteMix + (intensity) * ((waterColor >> 16 & 0xFF) / 255F);
4746
float cg = whiteMix + (intensity) * ((waterColor >> 8 & 0xFF) / 255F);

forge/src/main/java/net/tschipcraft/make_bubbles_pop/mixin/client/BarrelBubble.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import net.minecraft.world.level.block.entity.BlockEntityTicker;
1010
import net.minecraft.world.level.block.entity.BlockEntityType;
1111
import net.minecraft.world.level.block.state.BlockState;
12-
import net.tschipcraft.make_bubbles_pop.MakeBubblesPop;
1312
import net.tschipcraft.make_bubbles_pop.MakeBubblesPopConfig;
1413
import net.tschipcraft.make_bubbles_pop.impl.BarrelBlockEntityInterface;
1514
import net.tschipcraft.make_bubbles_pop.impl.BarrelBubbler;
@@ -42,7 +41,7 @@ public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, Block
4241

4342
@Unique
4443
public <T extends BlockEntity> void makeBubblesPop$clientTick(Level world, BlockPos pos, BlockState state, T blockEntity) {
45-
if (world != null && world.isClientSide && (!MakeBubblesPop.MIDNIGHTLIB_INSTALLED || MakeBubblesPopConfig.BARREL_BUBBLES_ENABLED)) {
44+
if (world != null && world.isClientSide && (MakeBubblesPopConfig.BARREL_BUBBLES_ENABLED)) {
4645
// Get direction and openness of barrel block
4746
Direction facing = state.getOptionalValue(BarrelBlock.FACING).orElse(Direction.NORTH);
4847
boolean open = state.getOptionalValue(BarrelBlock.OPEN).orElse(false);

0 commit comments

Comments
 (0)