Skip to content

Commit 6fc0b72

Browse files
committed
Maybe fix bad CinderscapesSoundEvents interaction with unknown other mod?
- Maybe fix bad CinderscapesSoundEvents interaction with unknown other mod
1 parent 583784b commit 6fc0b72

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

common/src/main/java/com/terraformersmc/cinderscapes/init/CinderscapesSoundEvents.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.terraformersmc.cinderscapes.init;
22

33
import com.terraformersmc.cinderscapes.Cinderscapes;
4-
import com.terraformersmc.cinderscapes.mixin.SoundEventAccessor;
54
import net.minecraft.registry.Registries;
65
import net.minecraft.registry.Registry;
76
import net.minecraft.sound.SoundEvent;
@@ -24,7 +23,8 @@ public class CinderscapesSoundEvents {
2423
public static final SoundEvent MUSIC_DISC_CHILLING_IN_HELL = add(SoundEvent.of(Identifier.of(Cinderscapes.MOD_ID, "music_disc.chilling_in_hell")));
2524

2625
private static <S extends SoundEvent> S add(S sound_event) {
27-
SOUND_EVENTS.put(((SoundEventAccessor) sound_event).cinderscapes$getId(), sound_event);
26+
SOUND_EVENTS.put(sound_event.getId(), sound_event);
27+
2828
return sound_event;
2929
}
3030

common/src/main/java/com/terraformersmc/cinderscapes/mixin/SoundEventAccessor.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

common/src/main/resources/mixins.cinderscapes-common.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"MixinNetherrackBlock",
88
"MixinPlantBlock",
99
"MixinServerWorld",
10-
"OverworldBiomeCreatorAccessor",
11-
"SoundEventAccessor"
10+
"OverworldBiomeCreatorAccessor"
1211
],
1312
"client": [
1413
],

0 commit comments

Comments
 (0)