Fixed a bug that resulted in infinite death if more than one entity died in the same tick

This commit is contained in:
Ceikry 2023-07-29 03:55:13 +00:00 committed by Ryan
parent cb34966f38
commit cf07fc3787

View file

@ -156,7 +156,7 @@ public final class DeathTask extends NodeTask {
if (killer == null) { if (killer == null) {
killer = entity; killer = entity;
} }
Pulse pulse = SINGLETON.schedule(entity, killer); Pulse pulse = new DeathTask().schedule(entity, killer);
entity.getPulseManager().run(pulse, PulseType.STRONG); entity.getPulseManager().run(pulse, PulseType.STRONG);
} }
} }