mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed a bug that resulted in infinite death if more than one entity died in the same tick
This commit is contained in:
parent
cb34966f38
commit
cf07fc3787
1 changed files with 2 additions and 2 deletions
|
|
@ -156,7 +156,7 @@ public final class DeathTask extends NodeTask {
|
|||
if (killer == null) {
|
||||
killer = entity;
|
||||
}
|
||||
Pulse pulse = SINGLETON.schedule(entity, killer);
|
||||
Pulse pulse = new DeathTask().schedule(entity, killer);
|
||||
entity.getPulseManager().run(pulse, PulseType.STRONG);
|
||||
}
|
||||
}
|
||||
|
|
@ -179,4 +179,4 @@ public final class DeathTask extends NodeTask {
|
|||
return SINGLETON;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue