mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-29 14:12:52 -04:00
Fix for inspiration and group buffs
Fix for inspiration and group buffs, they used distance check with different coordinate systems. Now watching and inspiration buff is possible.
This commit is contained in:
@@ -687,7 +687,7 @@ public class EntertainmentService implements INetworkDispatch {
|
||||
|
||||
final ScheduledFuture<?> spectatorTask = scheduler.scheduleAtFixedRate(() -> {
|
||||
try {
|
||||
if (spectator.getPosition().getDistance2D(performer.getWorldPosition()) > (float) 70) {
|
||||
if (spectator.getWorldPosition().getDistance2D(performer.getWorldPosition()) > (float) 70) {
|
||||
|
||||
if(((performer.getPerformanceType()) ? "dance" : "music").equals("dance")) {
|
||||
spectator.setPerformanceWatchee(null);
|
||||
|
||||
Reference in New Issue
Block a user