mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
remove unused function
This commit is contained in:
parent
e32680f05a
commit
179271e18c
1 changed files with 0 additions and 13 deletions
|
@ -252,19 +252,6 @@ local function is_safe_to_remove()
|
||||||
return not ctx.is_wand_pickup
|
return not ctx.is_wand_pickup
|
||||||
end
|
end
|
||||||
|
|
||||||
rpc.opts_everywhere()
|
|
||||||
function rpc.mimic_potion(ent, gid)
|
|
||||||
ent = ctx.entity_by_remote_id[ent] or ent
|
|
||||||
if not EntityHasTag(ent, "ew_global_item") then
|
|
||||||
item_sync.ensure_notify_component(ent)
|
|
||||||
EntityAddTag(ent, "ew_global_item")
|
|
||||||
EntityAddComponent2(ent, "VariableStorageComponent", {
|
|
||||||
_tags = "enabled_in_world,enabled_in_hand,enabled_in_inventory,ew_global_item_id",
|
|
||||||
value_string = gid,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function item_sync.on_world_update()
|
function item_sync.on_world_update()
|
||||||
-- TODO check that we not removing item we are going to pick now, instead of checking if picker gui is open.
|
-- TODO check that we not removing item we are going to pick now, instead of checking if picker gui is open.
|
||||||
if is_safe_to_remove() then
|
if is_safe_to_remove() then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue