Move gadget/monster creation events to after they are spawned in scene

This commit is contained in:
Melledy
2022-05-19 00:36:38 -07:00
parent 512021b234
commit cd77fb90a3
5 changed files with 32 additions and 7 deletions

View File

@@ -371,9 +371,6 @@ public class SceneScriptManager {
this.getScriptMonsterSpawnService()
.onMonsterCreatedListener.forEach(action -> action.onNotify(entity));
// Lua event
callEvent(EventType.EVENT_ANY_MONSTER_LIVE, new ScriptArgs(entity.getConfigId()));
return entity;
}