mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Emphemerial no crashy
This commit is contained in:
parent
2adc80ed63
commit
a18d03d2e1
1 changed files with 5 additions and 5 deletions
|
@ -508,11 +508,7 @@ local function sync_enemy(enemy_info_raw, force_no_cull)
|
||||||
goto continue
|
goto continue
|
||||||
end
|
end
|
||||||
local enemy_id
|
local enemy_id
|
||||||
if not_ephemerial then
|
enemy_id = EntityLoad(filename, x, y)
|
||||||
enemy_id = EntityLoad(filename, x, y)
|
|
||||||
else
|
|
||||||
enemy_id = util.load_ephemerial(filename, x, y)
|
|
||||||
end
|
|
||||||
spawned_by_us[enemy_id] = true
|
spawned_by_us[enemy_id] = true
|
||||||
EntityAddTag(enemy_id, "ew_replicated")
|
EntityAddTag(enemy_id, "ew_replicated")
|
||||||
EntityAddTag(enemy_id, "polymorphable_NOT")
|
EntityAddTag(enemy_id, "polymorphable_NOT")
|
||||||
|
@ -556,6 +552,10 @@ local function sync_enemy(enemy_info_raw, force_no_cull)
|
||||||
ComponentAddTag(sprite, "ew_sprite")
|
ComponentAddTag(sprite, "ew_sprite")
|
||||||
ComponentRemoveTag(sprite, "character")
|
ComponentRemoveTag(sprite, "character")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not not_ephemerial then
|
||||||
|
util.make_ephemerial(enemy_id)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local enemy_data_new = ctx.entity_by_remote_id[remote_enemy_id]
|
local enemy_data_new = ctx.entity_by_remote_id[remote_enemy_id]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue