From b591bb96f0226902058d4d6be7fe570f8683dc75 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 10 Nov 2019 22:45:46 +1300 Subject: [PATCH] Fix builds failing --- .../libraryaddict/disguise/utilities/DisguiseUtilities.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 5557a133..e39b4e19 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -86,7 +86,7 @@ public class DisguiseUtilities { private static long velocityTime; private static int velocityID; private static HashMap> 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());