mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 03:30:02 +00:00
Change the method used to check for Paper
This commit is contained in:
parent
b591bb96f0
commit
5bb9eeac84
1 changed files with 6 additions and 1 deletions
|
@ -859,7 +859,12 @@ public class DisguiseUtilities {
|
|||
}
|
||||
|
||||
public static void init(LibsDisguises disguises) {
|
||||
runningPaper = Bukkit.getServer().getBukkitVersion().contains("Paper");
|
||||
try {
|
||||
runningPaper = Class.forName("com.destroystokyo.paper.VersionHistoryManager$VersionData") != null;
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
||||
}
|
||||
|
||||
GsonBuilder gsonBuilder = new GsonBuilder();
|
||||
gsonBuilder.registerTypeAdapter(MetaIndex.class, new SerializerMetaIndex());
|
||||
|
|
Loading…
Reference in a new issue