Fix builds failing

This commit is contained in:
libraryaddict 2019-11-10 22:45:46 +13:00
parent ec6512aa77
commit b591bb96f0

View File

@ -86,7 +86,7 @@ public class DisguiseUtilities {
private static long velocityTime;
private static int velocityID;
private static HashMap<UUID, ArrayList<Integer>> disguiseLoading = new HashMap<>();
private static boolean runningPaper = Bukkit.getServer().getBukkitVersion().contains("Paper");
private static boolean runningPaper;
public static void setPlayerVelocity(Player player) {
velocityID = player.getEntityId();
@ -859,6 +859,8 @@ public class DisguiseUtilities {
}
public static void init(LibsDisguises disguises) {
runningPaper = Bukkit.getServer().getBukkitVersion().contains("Paper");
GsonBuilder gsonBuilder = new GsonBuilder();
gsonBuilder.registerTypeAdapter(MetaIndex.class, new SerializerMetaIndex());
gsonBuilder.registerTypeAdapter(WrappedGameProfile.class, new SerializerGameProfile());