We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4811bfa commit c38e3f3Copy full SHA for c38e3f3
src/main/java/dev/koifysh/archipelago/Client.java
@@ -1,5 +1,6 @@
1
package dev.koifysh.archipelago;
2
3
+import com.google.gson.JsonElement;
4
import com.google.gson.JsonObject;
5
import dev.koifysh.archipelago.events.RetrievedEvent;
6
import dev.koifysh.archipelago.flags.ItemsHandling;
@@ -187,8 +188,11 @@ public static String getUUID() {
187
188
return uuid = UUID.randomUUID().toString();
189
}
190
-
191
- tmp = data.get("uuid").getAsString();
+ JsonElement uuidEle = data.get("uuid");
192
+ if(!uuidEle.isJsonNull())
193
+ {
194
+ tmp = uuidEle.getAsString();
195
+ }
196
if(tmp != null)
197
{
198
return uuid = tmp;
0 commit comments