1
0
Fork 0
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:
BlockMen 2013-08-01 18:36:11 +02:00 committed by PilzAdam
parent ba65e2ae6c
commit 7b13d119ed
7 changed files with 15 additions and 8 deletions

View file

@ -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);