diff --git a/quant.ew/files/system/gen_sync/gen_sync.lua b/quant.ew/files/system/gen_sync/gen_sync.lua index 365fbc0d..a933f809 100644 --- a/quant.ew/files/system/gen_sync/gen_sync.lua +++ b/quant.ew/files/system/gen_sync/gen_sync.lua @@ -43,6 +43,7 @@ local function run_spawn_fn(fn_name, x, y, ...) if fn_info.kind == "item" then local eid = ret ctx.cap.item_sync.globalize(eid, true, ctx.rpc_peer_id) + -- Avoid item losing it's cost on host. local x, y = EntityGetTransform(eid) local minishop = EntityLoad("mods/quant.ew/files/system/gen_sync/tmp_shop_area.xml", x, y) EntityAddChild(eid, minishop) diff --git a/quant.ew/files/system/gen_sync/tmp_shop_script.lua b/quant.ew/files/system/gen_sync/tmp_shop_script.lua index e7c21247..70dfccc3 100644 --- a/quant.ew/files/system/gen_sync/tmp_shop_script.lua +++ b/quant.ew/files/system/gen_sync/tmp_shop_script.lua @@ -1,3 +1,5 @@ +-- Deletes the temporary shop entity after the world has been properly generated. + local ent = GetUpdatedEntityID() local x, y = EntityGetTransform(ent) if DoesWorldExistAt(x-5, y-5, x+5, y+5) then