From 3f1290fd0716f4532d85abda6a3cba12f1e1680d Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sat, 13 Apr 2024 13:26:03 -0400 Subject: [PATCH] Change response for Minecraft servers --- .../java/me/braydon/mc/model/cache/CachedMinecraftServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/braydon/mc/model/cache/CachedMinecraftServer.java b/src/main/java/me/braydon/mc/model/cache/CachedMinecraftServer.java index bfab077..58b68ff 100644 --- a/src/main/java/me/braydon/mc/model/cache/CachedMinecraftServer.java +++ b/src/main/java/me/braydon/mc/model/cache/CachedMinecraftServer.java @@ -24,6 +24,7 @@ package me.braydon.mc.model.cache; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonUnwrapped; import lombok.*; import me.braydon.mc.model.MinecraftServer; import org.springframework.data.annotation.Id; @@ -45,7 +46,7 @@ public final class CachedMinecraftServer implements Serializable { /** * The cached server. */ - @NonNull private final MinecraftServer value; + @JsonUnwrapped @NonNull private final MinecraftServer value; /** * The unix timestamp of when this