mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-20 19:04:40 +01:00
Move gadget/monster creation events to after they are spawned in scene
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user