From 5c105a15fb96be5859ac19a87e3f2577cf09fa9a Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 14 Apr 2025 08:27:24 +0200 Subject: [PATCH] Call spawn as deferred in ESSEntityWorldSpawner3DSingle instead of requesting a deferred entity spawn. --- .../world_spawners/ess_entity_world_spawner_3d_single.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/entity_spell_system/world_spawners/ess_entity_world_spawner_3d_single.cpp b/modules/entity_spell_system/world_spawners/ess_entity_world_spawner_3d_single.cpp index 31304bbbf..94f01c9da 100644 --- a/modules/entity_spell_system/world_spawners/ess_entity_world_spawner_3d_single.cpp +++ b/modules/entity_spell_system/world_spawners/ess_entity_world_spawner_3d_single.cpp @@ -89,7 +89,7 @@ void ESSEntityWorldSpawner3DSingle::_spawn() { info->set_transform(get_global_transform()); info->set_entity_data(_entity_data); info->set_species_instance(_entity_data->get_species_instance()); - ESS::get_singleton()->request_entity_spawn_deferred(info); + ESS::get_singleton()->request_entity_spawn(info); emit_on_entity_spawned(info); } @@ -104,7 +104,7 @@ ESSEntityWorldSpawner3DSingle::~ESSEntityWorldSpawner3DSingle() { void ESSEntityWorldSpawner3DSingle::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: - spawn(); + call_deferred("spawn"); break; default: