mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add support for different drowning damage and allow drowning in other nodetypes
This commit is contained in:
parent
ba65e2ae6c
commit
7b13d119ed
7 changed files with 15 additions and 8 deletions
|
@ -400,7 +400,8 @@ ContentFeatures read_content_features(lua_State *L, int index)
|
|||
|
||||
getboolfield(L, index, "liquid_renewable", f.liquid_renewable);
|
||||
getstringfield(L, index, "freezemelt", f.freezemelt);
|
||||
getboolfield(L, index, "drowning", f.drowning);
|
||||
f.drowning = getintfield_default(L, index,
|
||||
"drowning", f.drowning);
|
||||
// Amount of light the node emits
|
||||
f.light_source = getintfield_default(L, index,
|
||||
"light_source", f.light_source);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue