diff --git a/proxy/src/main/java/net/md_5/bungee/PlayerInfoSerializer.java b/proxy/src/main/java/net/md_5/bungee/PlayerInfoSerializer.java index 9cb57762..8b67cd66 100644 --- a/proxy/src/main/java/net/md_5/bungee/PlayerInfoSerializer.java +++ b/proxy/src/main/java/net/md_5/bungee/PlayerInfoSerializer.java @@ -7,18 +7,21 @@ import com.google.gson.JsonObject; import com.google.gson.JsonParseException; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; -import lombok.RequiredArgsConstructor; import net.md_5.bungee.api.ServerPing; import java.lang.reflect.Type; import java.util.UUID; -@RequiredArgsConstructor public class PlayerInfoSerializer implements JsonSerializer, JsonDeserializer { private final int protocol; + public PlayerInfoSerializer(int protocol) + { + this.protocol = protocol; + } + @Override public ServerPing.PlayerInfo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {