Skip to content

Commit

Permalink
fix(socket): null eventFor sent by Streamlabs Socket API
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Aug 6, 2019
1 parent 2137666 commit bfdc9cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ org.gradle.daemon=false

mod_id=twitchspawn
mod_group=net.programmer.igoodie
mod_version=1.0.8-beta
mod_version=1.0.9-beta

minecraft_version=1.14.3
forge_version=27.0.50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void onEvent(Socket socket, CredentialsConfig.Streamer streamer, Object.
return; // No message field (in expected format), stop here

String responseType = extractFrom(response, "type", String.class, null);
String responseFor = extractFrom(response, "for", String.class, null);
String responseFor = extractFrom(response, "for", String.class, "streamlabs" /*here because of Streamlabs' inconsistency*/);

JSONArray messages = extractFrom(response, "message", JSONArray.class, null);

Expand Down

0 comments on commit bfdc9cb

Please sign in to comment.