From 6540e3055243bb2922ea74d7cccd9c26f1dc9378 Mon Sep 17 00:00:00 2001 From: Eroax Date: Mon, 12 Feb 2024 00:37:18 -0700 Subject: [PATCH] Patched Twitch EventSub Event Data Caching Wasn't caching the Event Data early enough to be accessed. So now it does. --- classes/deck/nodes/twitch/twitch_eventsub_event.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/deck/nodes/twitch/twitch_eventsub_event.gd b/classes/deck/nodes/twitch/twitch_eventsub_event.gd index b06fb3e..663cc82 100644 --- a/classes/deck/nodes/twitch/twitch_eventsub_event.gd +++ b/classes/deck/nodes/twitch/twitch_eventsub_event.gd @@ -35,11 +35,11 @@ func _event_received(event_name: StringName, event_data: Dictionary = {}): return +# Sends the data along as well as the fact that the event happened. While also caching the event data for later access + cached_event_data = event_data.payload # Sends to indicate that the specified event has happened. send(0, null) -# Sends the data along as well as the fact that the event happened. While also caching the event data for later access - cached_event_data = event_data send(1, event_data)