mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-18 04:39:51 +08:00
Add EntityDeathEvent and implementations
This commit is contained in:
@@ -158,6 +158,8 @@ public class EntityMonster extends GameEntity {
|
||||
|
||||
@Override
|
||||
public void onDeath(int killerId) {
|
||||
super.onDeath(killerId); // Invoke super class's onDeath() method.
|
||||
|
||||
if (this.getSpawnEntry() != null) {
|
||||
this.getScene().getDeadSpawnedEntities().add(getSpawnEntry());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user