From 8a7ba25097c052f45e0bc867ac227f98da3f46c9 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Thu, 8 Nov 2018 16:57:14 -0500 Subject: [PATCH] Fix Forge server ping mod serialization. Closes #131 --- api/src/main/java/com/velocitypowered/api/util/ModInfo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/main/java/com/velocitypowered/api/util/ModInfo.java b/api/src/main/java/com/velocitypowered/api/util/ModInfo.java index c858cfb4b..623a39cb4 100644 --- a/api/src/main/java/com/velocitypowered/api/util/ModInfo.java +++ b/api/src/main/java/com/velocitypowered/api/util/ModInfo.java @@ -2,6 +2,7 @@ package com.velocitypowered.api.util; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; +import com.google.gson.annotations.SerializedName; import java.util.List; public final class ModInfo { @@ -34,6 +35,7 @@ public final class ModInfo { public static final class Mod { + @SerializedName("modid") private final String id; private final String version;