mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix some log errors
This commit is contained in:
parent
9a9d60bb5e
commit
0cbaf3c86a
2 changed files with 7 additions and 1 deletions
|
@ -644,6 +644,9 @@ local function sync_enemy(enemy_info_raw, force_no_cull)
|
|||
local found = false
|
||||
for _, child in ipairs(EntityGetAllChildren(enemy_id) or {}) do
|
||||
if EntityGetName(child) == "inventory_quick" then
|
||||
if EntityGetParent(wand) ~= nil then
|
||||
EntityRemoveFromParent(wand)
|
||||
end
|
||||
EntityAddChild(child, wand)
|
||||
found = true
|
||||
break
|
||||
|
|
|
@ -268,7 +268,10 @@ function item_sync.on_world_update()
|
|||
if GameGetFrameNum() % 5 == 2 then
|
||||
for _, ent in ipairs(EntityGetWithTag("mimic_potion")) do
|
||||
if EntityHasTag(ent, "polymorphed_player") then
|
||||
EntityRemoveComponent(ent, EntityGetFirstComponentIncludingDisabled(ent, "ItemComponent"))
|
||||
local com = EntityGetFirstComponentIncludingDisabled(ent, "ItemComponent")
|
||||
if com ~= nil then
|
||||
EntityRemoveComponent(ent, com)
|
||||
end
|
||||
elseif ctx.is_host then
|
||||
if not EntityHasTag(ent, "ew_global_item") then
|
||||
item_sync.make_item_global(ent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue