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

@@ -311,6 +311,7 @@ public class Scene {
private void addEntityDirectly(GameEntity entity) {
getEntities().put(entity.getId(), entity);
entity.onCreate(); // Call entity create event
}
public synchronized void addEntity(GameEntity entity) {