From 20810ba81dd56cd09832f2b021a9fc387cc479ff Mon Sep 17 00:00:00 2001 From: Maksim Date: Fri, 29 Jul 2022 13:07:17 +0200 Subject: [PATCH] Register node as MVPS stopper --- .luacheckrc | 2 +- depends.txt | 2 -- init.lua | 4 ++++ mod.conf | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 depends.txt 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