diff --git a/.luacheckrc b/.luacheckrc index 21f8991..ea9af9f 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -7,7 +7,7 @@ read_globals = { "PseudoRandom", "ItemStack", "AreaStore", "default", - "player_api", + "mesecon", } globals = { diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 8e482ce..0000000 --- a/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -default -player_api diff --git a/init.lua b/init.lua index cf66af9..ea9804a 100644 --- a/init.lua +++ b/init.lua @@ -8,3 +8,7 @@ exchange_shop.S = minetest.get_translator("exchange_shop") local modpath = minetest.get_modpath("exchange_shop") dofile(modpath .. "/shop_functions.lua") dofile(modpath .. "/shop.lua") + +if mesecon and mesecon.register_mvps_stopper then + mesecon.register_mvps_stopper(exchange_shop.shopname) +end diff --git a/mod.conf b/mod.conf index 90ff54f..3f03070 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,4 @@ name = exchange_shop description = An improved exchange shop depends = default +optional_depends = mesecons_mvps