aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/torui/coflsky/CoflSkyCommand.java2
-rw-r--r--src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/torui/coflsky/CoflSkyCommand.java b/src/main/java/de/torui/coflsky/CoflSkyCommand.java
index 411a943..e7ba17c 100644
--- a/src/main/java/de/torui/coflsky/CoflSkyCommand.java
+++ b/src/main/java/de/torui/coflsky/CoflSkyCommand.java
@@ -145,7 +145,7 @@ public class CoflSkyCommand extends CommandBase {
try {
CoflSession session = CoflSessionManager.GetCoflSession(PlayerDataProvider.getUsername());
- String sessionString = WSClient.gson.toJson(session);
+ String sessionString = CoflSessionManager.gson.toJson(session);
status += " session=" + sessionString;
} catch (IOException e) {
}
diff --git a/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java b/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java
index 49f18f7..6f74bf4 100644
--- a/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java
+++ b/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java
@@ -29,7 +29,7 @@ import com.google.gson.stream.JsonWriter;
import net.minecraftforge.fml.common.Loader;
public class CoflSessionManager {
- private static Gson gson = new GsonBuilder() .registerTypeAdapter(ZonedDateTime.class, new TypeAdapter<ZonedDateTime>() {
+ public static Gson gson = new GsonBuilder() .registerTypeAdapter(ZonedDateTime.class, new TypeAdapter<ZonedDateTime>() {
@Override
public void write(JsonWriter out, ZonedDateTime value) throws IOException {
out.value(value.toString());