Fix wrong version for paper check in tracker fetch
This commit is contained in:
parent
b83bc0605c
commit
8007cdd706
@ -1854,7 +1854,7 @@ public class DisguiseUtilities {
|
||||
|
||||
// TODO Store reflection fields
|
||||
// If the tracker exists. Remove himself from his tracker
|
||||
if (!isRunningPaper() || NmsVersion.v1_16.isSupported()) {
|
||||
if (!isRunningPaper() || NmsVersion.v1_17.isSupported()) {
|
||||
Object trackedPlayersObj = ReflectionManager.getNmsField("EntityTrackerEntry", "trackedPlayers").get(entityTrackerEntry);
|
||||
|
||||
((Set<Object>) trackedPlayersObj).remove(ReflectionManager.getPlayerConnectionOrPlayer(player));
|
||||
@ -2393,7 +2393,7 @@ public class DisguiseUtilities {
|
||||
|
||||
// TODO Store reflection fields
|
||||
// Check for code differences in PaperSpigot vs Spigot
|
||||
if (!isRunningPaper() || NmsVersion.v1_16.isSupported()) {
|
||||
if (!isRunningPaper() || NmsVersion.v1_17.isSupported()) {
|
||||
// Add himself to his own entity tracker
|
||||
Object trackedPlayersObj = ReflectionManager.getNmsField("EntityTrackerEntry", "trackedPlayers").get(entityTrackerEntry);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user