summaryrefslogtreecommitdiff
path: root/no_drowning.lua
diff options
context:
space:
mode:
Diffstat (limited to 'no_drowning.lua')
-rw-r--r--no_drowning.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/no_drowning.lua b/no_drowning.lua
new file mode 100644
index 0000000..f7b3149
--- /dev/null
+++ b/no_drowning.lua
@@ -0,0 +1,15 @@
+local function drwn_overwrite(name)
+ local table = minetest.registered_nodes[name]
+ local table2 = {}
+ for i,v in pairs(table) do
+ table2[i] = v
+ end
+ table2.drowning = false
+ table2.hud_drowning = true
+ minetest.register_node(":"..name, table2)
+end
+
+drwn_overwrite("default:water_source")
+drwn_overwrite("default:water_flowing")
+drwn_overwrite("default:lava_source")
+drwn_overwrite("default:lava_flowing")