mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +00:00
Add insurance for when paper changes tracker field
This commit is contained in:
parent
d005ab8da9
commit
36a2bc37c1
1 changed files with 5 additions and 0 deletions
|
@ -916,6 +916,11 @@ public class DisguiseUtilities {
|
|||
|
||||
public static void init() {
|
||||
try {
|
||||
// Force an exception to be thrown if it doesn't contain trackedPlayerMap
|
||||
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;
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
|
Loading…
Reference in a new issue