Skip to content

Commit 92d1e32

Browse files
committed
Fix effective ambience not playing
1 parent 71ff8e6 commit 92d1e32

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

build.gradle

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'fabric-loom' version '1.9-SNAPSHOT'
3-
id "io.github.ladysnake.chenille" version "0.14.0"
3+
id "io.github.ladysnake.chenille" version "0.15.0"
44
}
55

66
version = project.mod_version;
@@ -33,7 +33,17 @@ loom {
3333

3434
repositories {
3535
// Modrinth
36-
maven { url "https://api.modrinth.com/maven" }
36+
exclusiveContent {
37+
forRepository {
38+
maven {
39+
name = "Modrinth"
40+
url = "https://api.modrinth.com/maven"
41+
}
42+
}
43+
filter {
44+
includeGroup "maven.modrinth"
45+
}
46+
}
3747

3848
// Veil
3949
maven { url "https://maven.blamejared.com/" }

src/client/java/org/ladysnake/effective/Effective.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import net.minecraft.util.math.Vec3d;
2525
import net.minecraft.world.World;
2626
import org.ladysnake.effective.gui.ParryScreen;
27+
import org.ladysnake.effective.index.EffectiveAmbientConditions;
2728
import org.ladysnake.effective.index.EffectiveLights;
2829
import org.ladysnake.effective.index.EffectiveParticles;
2930
import org.ladysnake.effective.index.EffectiveSounds;
@@ -96,6 +97,8 @@ public static Identifier id(String string) {
9697

9798
@Override
9899
public void onInitializeClient() {
100+
EffectiveAmbientConditions.initialize();
101+
99102
// Enable Veil albedo buffer
100103
VeilEventPlatform.INSTANCE.onVeilRendererAvailable(veilRenderer -> {
101104
VeilRenderSystem.renderer().enableBuffers(Effective.id("albedo"), DynamicBufferType.ALBEDO);

src/client/java/org/ladysnake/effective/index/EffectiveAmbientConditions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
public class EffectiveAmbientConditions {
1414
public static final Set<AmbientCondition> INSTANCE = new HashSet<>();
1515

16-
public void initialize() {
16+
public static void initialize() {
1717
// bees in floral biomes during the day
1818
INSTANCE.add(new AmbientCondition(EffectiveSounds.AMBIENT_ANIMAL_BEES, AmbientCondition.Type.ANIMAL,
1919
(world, pos, player) -> EffectiveUtils.isInOverworld(world, pos) && !EffectiveUtils.isInCave(world, pos) && world.getBiome(pos).isIn(ConventionalBiomeTags.IS_FLORAL) && !Effective.isNightTime(world)));

0 commit comments

Comments
 (0)