🆙 Change Youtube SpriteID to Item ID

The old way is that you can add the playlist to the ITEM_BASE => Sprite ID
The new way is the ITEM in the Room, this way you make a TV for every room with the same Sprite ID
This commit is contained in:
duckietm 2024-07-23 13:18:01 +02:00
parent 3a33720124
commit df05f8324c
2 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class YoutubeRequestPlaylists extends MessageHandler {
if (item instanceof InteractionYoutubeTV) {
InteractionYoutubeTV tv = (InteractionYoutubeTV) item;
ArrayList<YoutubeManager.YoutubePlaylist> playlists = Emulator.getGameEnvironment().getItemManager().getYoutubeManager().getPlaylistsForItemId(item.getBaseItem().getId());
ArrayList<YoutubeManager.YoutubePlaylist> playlists = Emulator.getGameEnvironment().getItemManager().getYoutubeManager().getPlaylistsForItemId(itemId);
if (playlists == null) {
LOGGER.error("No YouTube playlists set for base item #" + item.getBaseItem().getId());