summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-09-10 21:30:28 -0600
committerFaceDeer <derksenmobile@gmail.com>2017-09-10 21:30:28 -0600
commit268b4d16263104f1c1710fdacbeb61a75de69ec3 (patch)
tree7e5c5c6209260e0f5b9218878076f57c2e834335
parent97a258cf9ca601266e934018b5bdea6d2f3a088c (diff)
upgrade lbm for builder extrusion metadata
-rw-r--r--init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index dbccbdd..0cf442e 100644
--- a/init.lua
+++ b/init.lua
@@ -97,6 +97,15 @@ minetest.register_lbm({
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
local digtron_nodes = {
minetest.get_content_id("digtron:inventory"),