mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-27 17:43:44 +01:00
16 lines
408 B
Lua
16 lines
408 B
Lua
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")
|