mirror of
https://github.com/minetest-mods/digtron.git
synced 2025-01-03 09:37:27 +01:00
upgrade lbm for builder extrusion metadata
This commit is contained in:
parent
97a258cf9c
commit
268b4d1626
9
init.lua
9
init.lua
@ -97,6 +97,15 @@ minetest.register_lbm({
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_lbm({
|
||||||
|
name = "digtron:builder_extrusion_upgrade",
|
||||||
|
nodenames = {"digtron:builder"},
|
||||||
|
action = function(pos, node)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
meta:set_int("extrusion", 1)
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("catacomb") and catacomb ~= nil and catacomb.chamber_protected_nodes ~= nil and catacomb.passage_protected_nodes ~= nil then
|
if minetest.get_modpath("catacomb") and catacomb ~= nil and catacomb.chamber_protected_nodes ~= nil and catacomb.passage_protected_nodes ~= nil then
|
||||||
local digtron_nodes = {
|
local digtron_nodes = {
|
||||||
minetest.get_content_id("digtron:inventory"),
|
minetest.get_content_id("digtron:inventory"),
|
||||||
|
Loading…
Reference in New Issue
Block a user