I don't know why this would be null, but thats what the error says..
This commit is contained in:
parent
4e3f86acd0
commit
324c675055
@ -40,7 +40,8 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter {
|
|||||||
try {
|
try {
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user