Skip to content

Commit

Permalink
Load music packs in the lobby
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrptonaught committed Jun 18, 2024
1 parent a46cceb commit e140920
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ public static void teleportToLobby(Identifier dimID, Collection<ServerPlayerEnti
private static void lobbyTP(ServerWorld world, ServerPlayerEntity player, String[] coords, BaseMapAddon addon) {
loadResourcePacks(addon, player);

if (SwitchableResourcepacksMod.isSafeMusicEnabled(player) && addon.safe_music_pack != null) {
SwitchableResourcepacksMod.setMusicPack(player, addon.safe_music_pack);
} else {
SwitchableResourcepacksMod.setMusicPack(player, addon.music_pack);
}

float yaw = player.getYaw();
float pitch = player.getPitch();

Expand Down

0 comments on commit e140920

Please sign in to comment.