Skip to content

Commit

Permalink
Fix a bug where creative music plays in survival if you're in an over…
Browse files Browse the repository at this point in the history
…world biome with specific music
  • Loading branch information
AliahX committed Jun 20, 2023
1 parent b777a13 commit d36f1a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private static void musicMixin(SoundEvent sound, CallbackInfoReturnable<Position
case UNDER_WATER -> SoundEvents.MUSIC_UNDER_WATER.value();
};

if(config.gameConfig.creativeMusicPlaysInSurvival && (sound.getId().toString().equals("minecraft:music.game")) || sound.getId().toString().contains("minecraft:music.overworld.")) {
if(config.gameConfig.creativeMusicPlaysInSurvival && (sound.getId().toString().equals("minecraft:music.game") || sound.getId().toString().contains("minecraft:music.overworld."))) {
sound = SoundEvents.MUSIC_CREATIVE.value();
}

Expand Down

0 comments on commit d36f1a6

Please sign in to comment.