Add "pre support" for jim-shops exploit security

This commit is contained in:
Jim Shield
2025-09-21 12:00:05 +01:00
parent ed49876c69
commit 3ac65d4630

View File

@@ -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