Fix a junit test error, thanks andrewkm

This commit is contained in:
libraryaddict 2024-10-29 17:22:20 +13:00
parent 4b8c293c43
commit 762368cef5

View File

@ -338,8 +338,6 @@ public class DisguiseUtilities {
} catch (Exception ignored) { } catch (Exception ignored) {
} }
runningGeyser = Bukkit.getPluginManager().getPlugin("Geyser-Spigot") != null;
if (LibsDisguises.getInstance() == null) { if (LibsDisguises.getInstance() == null) {
profileCache = null; profileCache = null;
sanitySkinCacheFile = null; sanitySkinCacheFile = null;
@ -348,6 +346,7 @@ public class DisguiseUtilities {
profileCache = new File(LibsDisguises.getInstance().getDataFolder(), "SavedSkins"); profileCache = new File(LibsDisguises.getInstance().getDataFolder(), "SavedSkins");
sanitySkinCacheFile = new File(LibsDisguises.getInstance().getDataFolder(), "SavedSkins/sanity.json"); sanitySkinCacheFile = new File(LibsDisguises.getInstance().getDataFolder(), "SavedSkins/sanity.json");
savedDisguises = new File(LibsDisguises.getInstance().getDataFolder(), "SavedDisguises"); savedDisguises = new File(LibsDisguises.getInstance().getDataFolder(), "SavedDisguises");
runningGeyser = Bukkit.getPluginManager().getPlugin("Geyser-Spigot") != null;
} }
entityItem = EntityType.fromName("item"); entityItem = EntityType.fromName("item");