Skip to content

Commit

Permalink
Maybe fix bad CinderscapesSoundEvents interaction with unknown other …
Browse files Browse the repository at this point in the history
…mod?

- Maybe fix bad CinderscapesSoundEvents interaction with unknown other mod
  • Loading branch information
gniftygnome committed Jul 4, 2024
1 parent 583784b commit 6fc0b72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.terraformersmc.cinderscapes.init;

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

private static <S extends SoundEvent> S add(S sound_event) {
SOUND_EVENTS.put(((SoundEventAccessor) sound_event).cinderscapes$getId(), sound_event);
SOUND_EVENTS.put(sound_event.getId(), sound_event);

return sound_event;
}

Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions common/src/main/resources/mixins.cinderscapes-common.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"MixinNetherrackBlock",
"MixinPlantBlock",
"MixinServerWorld",
"OverworldBiomeCreatorAccessor",
"SoundEventAccessor"
"OverworldBiomeCreatorAccessor"
],
"client": [
],
Expand Down

0 comments on commit 6fc0b72

Please sign in to comment.