mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
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();
|
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;
|
return;
|
||||||
|
|
||||||
// First get the entity, the one sending this packet
|
// First get the entity, the one sending this packet
|
||||||
|
Loading…
Reference in New Issue
Block a user