Reverse a boolean check
This commit is contained in:
parent
5bb9eeac84
commit
0972e74d17
@ -1249,7 +1249,7 @@ public class DisguiseUtilities {
|
|||||||
if (entityTrackerEntry != null) {
|
if (entityTrackerEntry != null) {
|
||||||
|
|
||||||
// If the tracker exists. Remove himself from his tracker
|
// If the tracker exists. Remove himself from his tracker
|
||||||
if (runningPaper) {
|
if (!runningPaper) {
|
||||||
Object trackedPlayersObj = ReflectionManager.getNmsField("EntityTrackerEntry", "trackedPlayers")
|
Object trackedPlayersObj = ReflectionManager.getNmsField("EntityTrackerEntry", "trackedPlayers")
|
||||||
.get(entityTrackerEntry);
|
.get(entityTrackerEntry);
|
||||||
|
|
||||||
@ -1539,7 +1539,7 @@ public class DisguiseUtilities {
|
|||||||
setupSelfDisguiseScoreboard(player);
|
setupSelfDisguiseScoreboard(player);
|
||||||
|
|
||||||
// Check for code differences in PaperSpigot vs Spigot
|
// Check for code differences in PaperSpigot vs Spigot
|
||||||
if (runningPaper) {
|
if (!runningPaper) {
|
||||||
// Add himself to his own entity tracker
|
// Add himself to his own entity tracker
|
||||||
Object trackedPlayersObj = ReflectionManager.getNmsField("EntityTrackerEntry", "trackedPlayers")
|
Object trackedPlayersObj = ReflectionManager.getNmsField("EntityTrackerEntry", "trackedPlayers")
|
||||||
.get(entityTrackerEntry);
|
.get(entityTrackerEntry);
|
||||||
|
Loading…
Reference in New Issue
Block a user