I don't know why this would be null, but thats what the error says..

This commit is contained in:
libraryaddict 2020-03-25 21:52:52 +13:00
parent 4e3f86acd0
commit 324c675055
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -40,7 +40,8 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter {
try {
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;
}