From f85e42b7fafa3697cca51ff257aa58d7cedaffc6 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Thu, 5 Jan 2017 23:52:09 -0700 Subject: Adding is_ground_content = false to all digtrons I just had a test digtron get mostly destroyed by a dungeon generating around it as it crossed a map chunk boundary. Apparently dungeon generation can extend into already-generated map chunks, to prevent dungeons from getting cut off. Hopefully this will prevent such a tragedy from happening again. --- node_controllers.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'node_controllers.lua') diff --git a/node_controllers.lua b/node_controllers.lua index 4c521da..5316997 100644 --- a/node_controllers.lua +++ b/node_controllers.lua @@ -277,7 +277,9 @@ minetest.register_node("digtron:controller", { groups = {cracky = 3, oddly_breakable_by_hand = 3, digtron = 1}, drop = "digtron:controller", sounds = digtron.metal_sounds, + paramtype = "light", paramtype2= "facedir", + is_ground_content = false, -- Aims in the +Z direction by default tiles = { "digtron_plate.png^[transformR90", @@ -289,7 +291,6 @@ minetest.register_node("digtron:controller", { }, drawtype = "nodebox", - paramtype = "light", node_box = { type = "fixed", fixed = controller_nodebox, @@ -378,7 +379,9 @@ minetest.register_node("digtron:auto_controller", { groups = {cracky = 3, oddly_breakable_by_hand = 3, digtron = 1}, drop = "digtron:auto_controller", sounds = digtron.metal_sounds, + paramtype = "light", paramtype2= "facedir", + is_ground_content = false, -- Aims in the +Z direction by default tiles = { "digtron_plate.png^[transformR90^[colorize:#88000030", @@ -390,7 +393,6 @@ minetest.register_node("digtron:auto_controller", { }, drawtype = "nodebox", - paramtype = "light", node_box = { type = "fixed", fixed = controller_nodebox, @@ -445,7 +447,9 @@ minetest.register_node("digtron:pusher", { groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 1}, drop = "digtron:pusher", sounds = digtron.metal_sounds, + paramtype = "light", paramtype2= "facedir", + is_ground_content = false, -- Aims in the +Z direction by default tiles = { "digtron_plate.png^[transformR90^[colorize:#00880030", @@ -457,7 +461,6 @@ minetest.register_node("digtron:pusher", { }, drawtype = "nodebox", - paramtype = "light", node_box = { type = "fixed", fixed = controller_nodebox, -- cgit v1.2.3