mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +00:00
Do that fix for main packet listener too
This commit is contained in:
parent
324c675055
commit
356519be19
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ public class PacketListenerMain extends PacketAdapter {
|
|||
|
||||
final Player observer = event.getPlayer();
|
||||
|
||||
if (observer.getName().contains("UNKNOWN[")) // If the player is temporary
|
||||
if (observer == null || observer.getName() == null ||
|
||||
observer.getName().contains("UNKNOWN[")) // If the player is temporary
|
||||
return;
|
||||
|
||||
// First get the entity, the one sending this packet
|
||||
|
|
Loading…
Reference in a new issue