summaryrefslogtreecommitdiff
path: root/node_misc.lua
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-01-05 23:52:09 -0700
committerFaceDeer <derksenmobile@gmail.com>2017-01-05 23:52:09 -0700
commitf85e42b7fafa3697cca51ff257aa58d7cedaffc6 (patch)
tree622a35b4b8bb43330f71ea43df75908065a781ef /node_misc.lua
parent4699ad04cc1e02ac0e0b1be25ed1c7ddf04ff9a7 (diff)
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.
Diffstat (limited to 'node_misc.lua')
-rw-r--r--node_misc.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/node_misc.lua b/node_misc.lua
index ca28318..30b4e65 100644
--- a/node_misc.lua
+++ b/node_misc.lua
@@ -9,6 +9,7 @@ minetest.register_node("digtron:structure", {
climbable = true,
walkable = false,
paramtype = "light",
+ is_ground_content = false,
node_box = {
type = "fixed",
fixed = {
@@ -36,6 +37,7 @@ minetest.register_node("digtron:light", {
tiles = {"digtron_light.png"},
drawtype = "nodebox",
paramtype = "light",
+ is_ground_content = false,
light_source = 10,
sounds = default.node_sound_glass_defaults(),
paramtype2 = "wallmounted",
@@ -56,6 +58,7 @@ minetest.register_node("digtron:inventory",
drop = "digtron:inventory",
sounds = digtron.metal_sounds,
paramtype2= "facedir",
+ is_ground_content = false,
tiles = {"digtron_inventory.png"},
on_construct = function(pos)
@@ -93,6 +96,7 @@ minetest.register_node("digtron:fuelstore",
drop = "digtron:fuelstore",
sounds = digtron.metal_sounds,
paramtype2= "facedir",
+ is_ground_content = false,
tiles = {"digtron_fuelstore.png"},
on_construct = function(pos)