mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-29 14:12:52 -04:00
Fixed null errors associated when you stop watching an entertainer or go out of range
This commit is contained in:
@@ -702,7 +702,10 @@ public class EntertainmentService implements INetworkDispatch {
|
||||
//spectator.setMoodAnimation("neutral");
|
||||
performer.removeSpectator(spectator);
|
||||
|
||||
if (spectator.getInspirationTick().cancel(true))
|
||||
if (spectator.getInspirationTick() != null)
|
||||
spectator.getInspirationTick().cancel(true);
|
||||
|
||||
if (spectator.getSpectatorTask() != null)
|
||||
spectator.getSpectatorTask().cancel(true);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user