This commit is contained in:
DuvelCorp
2026-03-19 16:27:21 +01:00
parent 609a6bdd83
commit b2060e0aab
38 changed files with 19649 additions and 214 deletions
+1 -4
View File
@@ -6,7 +6,7 @@
local MTH_AutoBuy = {
name = "autobuy",
enabled = false,
version = "1.2.0",
version = "1.3.0",
events = {
"VARIABLES_LOADED",
"MERCHANT_SHOW",
@@ -140,12 +140,9 @@ function MTH_AutoBuy:onEvent(event)
return
end
AB_Log("onEvent event=" .. tostring(event) .. " module.enabled=" .. tostring(self.enabled), "debug")
if event == "VARIABLES_LOADED" then
engine:Init()
AB_SetBridgeActive(self.enabled and true or false)
AB_Log("onEvent VARIABLES_LOADED -> engine init", "debug")
local store = engine:EnsureDefaults()
AB_Trace("VARIABLES_LOADED module.enabled=" .. tostring(self.enabled)
.. " store.enabled=" .. tostring(store and store.enabled)