Remove universal jar building for a smaller jar footprint and less conflicts with provided dependencies
This commit is contained in:
7 files changed
+92
-94
No files matched your search
@@ -2,6 +2,7 @@ package com.github.games647.fastlogin.core.mojang;
|
||||
|
||||
import com.github.games647.fastlogin.core.CommonUtil;
|
||||
import com.google.gson.TypeAdapter;
|
||||
import com.google.gson.internal.bind.TypeAdapters;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
|
||||
@@ -11,10 +12,10 @@ import java.util.UUID;
|
||||
public class UUIDTypeAdapter extends TypeAdapter<UUID> {
|
||||
|
||||
public void write(JsonWriter out, UUID value) throws IOException {
|
||||
out.value(CommonUtil.toMojangId(value));
|
||||
TypeAdapters.STRING.write(out, CommonUtil.toMojangId(value));
|
||||
}
|
||||
|
||||
public UUID read(JsonReader in) throws IOException {
|
||||
return CommonUtil.parseId(in.nextString());
|
||||
return CommonUtil.parseId(TypeAdapters.STRING.read(in));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user