register mvps stopper for complex techage nodes
This commit is contained in:
parent
18d06994bc
commit
75dca89737
@ -16,6 +16,7 @@
|
|||||||
local S = function(pos) if pos then return minetest.pos_to_string(pos) end end
|
local S = function(pos) if pos then return minetest.pos_to_string(pos) end end
|
||||||
--local P = minetest.string_to_pos
|
--local P = minetest.string_to_pos
|
||||||
--local M = minetest.get_meta
|
--local M = minetest.get_meta
|
||||||
|
local has_mesecons = minetest.get_modpath("mesecons_mvps")
|
||||||
|
|
||||||
local NodeInfoCache = {}
|
local NodeInfoCache = {}
|
||||||
local NumbersToBeRecycled = {}
|
local NumbersToBeRecycled = {}
|
||||||
@ -317,6 +318,13 @@ function techage.register_node(names, node_definition)
|
|||||||
if node_definition.on_node_load then
|
if node_definition.on_node_load then
|
||||||
register_lbm(names[1], names)
|
register_lbm(names[1], names)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- register mvps stopper
|
||||||
|
if has_mesecons then
|
||||||
|
for _, name in ipairs(names) do
|
||||||
|
mesecon.register_mvps_stopper(name)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
|||||||
name = techage
|
name = techage
|
||||||
depends = default,doors,flowers,tubelib2,networks,basic_materials,bucket,stairs,screwdriver,minecart,lcdlib,safer_lua
|
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!
|
description = Techage, go through 5 tech ages in search of wealth and power!
|
||||||
|
Loading…
Reference in New Issue
Block a user