diff --git a/quant.ew/files/system/gen_sync/gen_sync.lua b/quant.ew/files/system/gen_sync/gen_sync.lua index 498f1683..365fbc0d 100644 --- a/quant.ew/files/system/gen_sync/gen_sync.lua +++ b/quant.ew/files/system/gen_sync/gen_sync.lua @@ -44,7 +44,8 @@ local function run_spawn_fn(fn_name, x, y, ...) local eid = ret ctx.cap.item_sync.globalize(eid, true, ctx.rpc_peer_id) local x, y = EntityGetTransform(eid) - EntityLoad("mods/quant.ew/files/system/gen_sync/tmp_shop_area.xml", x, y) + local minishop = EntityLoad("mods/quant.ew/files/system/gen_sync/tmp_shop_area.xml", x, y) + EntityAddChild(eid, minishop) end end diff --git a/quant.ew/files/system/gen_sync/tmp_shop_area.xml b/quant.ew/files/system/gen_sync/tmp_shop_area.xml index db8bdea8..4492ccbe 100644 --- a/quant.ew/files/system/gen_sync/tmp_shop_area.xml +++ b/quant.ew/files/system/gen_sync/tmp_shop_area.xml @@ -2,6 +2,7 @@ tags="shop" > + offset.y="0" + /> + + + \ No newline at end of file diff --git a/quant.ew/files/system/gen_sync/tmp_shop_script.lua b/quant.ew/files/system/gen_sync/tmp_shop_script.lua new file mode 100644 index 00000000..e7c21247 --- /dev/null +++ b/quant.ew/files/system/gen_sync/tmp_shop_script.lua @@ -0,0 +1,5 @@ +local ent = GetUpdatedEntityID() +local x, y = EntityGetTransform(ent) +if DoesWorldExistAt(x-5, y-5, x+5, y+5) then + EntityKill(ent) +end