Fix paper breaking saved disguises, or my own code. Lets blame them anyways.
This commit is contained in:
parent
a489b4865b
commit
dfe4001102
@ -1367,13 +1367,10 @@ public class DisguiseUtilities {
|
|||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
try {
|
try {
|
||||||
// Force an exception to be thrown if it doesn't contain trackedPlayerMap
|
// Check if we enable the paperdisguiselistener
|
||||||
Class tracker = ReflectionManager.getNmsClass("EntityTrackerEntry");
|
|
||||||
tracker.getDeclaredField("trackedPlayerMap");
|
|
||||||
|
|
||||||
// Don't really need this here, but it's insurance!
|
|
||||||
runningPaper = Class.forName("com.destroystokyo.paper.VersionHistoryManager$VersionData") != null;
|
runningPaper = Class.forName("com.destroystokyo.paper.VersionHistoryManager$VersionData") != null;
|
||||||
} catch (Exception ignored) {
|
} catch (Exception ex) {
|
||||||
|
runningPaper = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
GsonBuilder gsonBuilder = new GsonBuilder();
|
GsonBuilder gsonBuilder = new GsonBuilder();
|
||||||
|
Loading…
Reference in New Issue
Block a user