🆙 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:
parent
3a33720124
commit
df05f8324c
@ -25,7 +25,7 @@ public class YoutubeRequestPlaylists extends MessageHandler {
|
|||||||
if (item instanceof InteractionYoutubeTV) {
|
if (item instanceof InteractionYoutubeTV) {
|
||||||
InteractionYoutubeTV tv = (InteractionYoutubeTV) item;
|
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) {
|
if (playlists == null) {
|
||||||
LOGGER.error("No YouTube playlists set for base item #" + item.getBaseItem().getId());
|
LOGGER.error("No YouTube playlists set for base item #" + item.getBaseItem().getId());
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user