From d3e8f7134aacacca5c5980ff108f576f7b1f4bd0 Mon Sep 17 00:00:00 2001 From: BlockMen Date: Fri, 28 Jun 2013 22:58:06 +0200 Subject: Initial commit --- no_drowning.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 no_drowning.lua (limited to 'no_drowning.lua') 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") -- cgit v1.2.3