From 3ac65d4630423b0499cff9a25f9f965fa5c6e908 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sun, 21 Sep 2025 12:00:05 +0100 Subject: [PATCH] Add "pre support" for jim-shops exploit security --- shared/itemcontrol.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shared/itemcontrol.lua b/shared/itemcontrol.lua index 4c80406..7e1592e 100644 --- a/shared/itemcontrol.lua +++ b/shared/itemcontrol.lua @@ -2688,6 +2688,13 @@ function registerShop(name, label, items, society, coords) shopExploitCheck = shopExploitCheck or {} shopExploitCheck[name] = shopExploitCheck[name] or {} + if isStarted("jim-shops") then + -- Add support for new jim-shops registration export + if checkExportExists("jim-shops", "registerShop") then + exports["jim-shops"]:registerShop(name, label, items, society, coords) + end + end + for i = 1, #InvFunc do local inv = InvFunc[i] if isStarted(inv.invName) then