Stop trying to send a self disguise if the player isn't valid.
This commit is contained in:
parent
17c2d95e1d
commit
447f267811
@ -121,6 +121,9 @@ public class DisguiseUtilities {
|
||||
*/
|
||||
public static void sendSelfDisguise(final Player player) {
|
||||
try {
|
||||
if (!player.isValid()) {
|
||||
return;
|
||||
}
|
||||
Object world = ReflectionManager.getWorld(player.getWorld());
|
||||
Object tracker = world.getClass().getField("tracker").get(world);
|
||||
Object trackedEntities = tracker.getClass().getField("trackedEntities").get(tracker);
|
||||
|
Loading…
Reference in New Issue
Block a user