mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-14 04:13:11 -04:00
Fixed an issue where resuscitation timers weren't being cancelled
This commit is contained in:
@@ -337,6 +337,15 @@ public final class CorpseService extends Service {
|
||||
return CloneResult.INVALID_CELL;
|
||||
}
|
||||
|
||||
// Cancel the forced cloning timer
|
||||
synchronized (reviveTimers) {
|
||||
Future<?> timer = reviveTimers.remove(corpse);
|
||||
|
||||
if (timer != null) {
|
||||
timer.cancel(false);
|
||||
}
|
||||
}
|
||||
|
||||
teleport(corpse, cellObject, getCloneLocation(facilityData, selectedFacility));
|
||||
return CloneResult.SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user