Do that fix for main packet listener too
This commit is contained in:
parent
324c675055
commit
356519be19
@ -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 New Issue
Block a user