From 75dca89737c71d93fa8c533929b7c39ca0043b0a Mon Sep 17 00:00:00 2001 From: Niklp09 <89982526+Niklp09@users.noreply.github.com> Date: Sat, 5 Nov 2022 14:54:00 +0100 Subject: [PATCH] register mvps stopper for complex techage nodes --- basis/command.lua | 8 ++++++++ mod.conf | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/basis/command.lua b/basis/command.lua index 1ae41e8..d314a3d 100644 --- a/basis/command.lua +++ b/basis/command.lua @@ -16,6 +16,7 @@ local S = function(pos) if pos then return minetest.pos_to_string(pos) end end --local P = minetest.string_to_pos --local M = minetest.get_meta +local has_mesecons = minetest.get_modpath("mesecons_mvps") local NodeInfoCache = {} local NumbersToBeRecycled = {} @@ -317,6 +318,13 @@ function techage.register_node(names, node_definition) if node_definition.on_node_load then register_lbm(names[1], names) end + + -- register mvps stopper + if has_mesecons then + for _, name in ipairs(names) do + mesecon.register_mvps_stopper(name) + end + end end ------------------------------------------------------------------- diff --git a/mod.conf b/mod.conf index b4eff7e..0fa5481 100644 --- a/mod.conf +++ b/mod.conf @@ -1,4 +1,4 @@ name = techage depends = default,doors,flowers,tubelib2,networks,basic_materials,bucket,stairs,screwdriver,minecart,lcdlib,safer_lua -optional_depends = unified_inventory,wielded_light,unifieddyes,moreores,ethereal,mesecons,mesecons_materials,digtron,bakedclay,moreblocks,i3,creative,craftguide +optional_depends = unified_inventory,wielded_light,unifieddyes,moreores,ethereal,mesecons,mesecons_materials,mesecons_mvps,digtron,bakedclay,moreblocks,i3,creative,craftguide description = Techage, go through 5 tech ages in search of wealth and power!