From 179271e18cc0de0cf6515060c77df4a3fbdece13 Mon Sep 17 00:00:00 2001 From: bgkillas Date: Sun, 3 Nov 2024 09:40:26 -0500 Subject: [PATCH] remove unused function --- quant.ew/files/system/item_sync.lua | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/quant.ew/files/system/item_sync.lua b/quant.ew/files/system/item_sync.lua index 5037504e..a141e71d 100644 --- a/quant.ew/files/system/item_sync.lua +++ b/quant.ew/files/system/item_sync.lua @@ -252,19 +252,6 @@ local function is_safe_to_remove() return not ctx.is_wand_pickup 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() -- 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