1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 17:15:21 +02:00

Merge pull request #243 from xyzz/liquid_renewable

Add liquid_renewable property, allow non-renewable liquids.
This commit is contained in:
PilzAdam
2012-11-03 12:34:44 -07:00
5 changed files with 10 additions and 2 deletions

View File

@@ -1238,6 +1238,7 @@ static ContentFeatures read_content_features(lua_State *L, int index)
// the slowest possible
f.liquid_viscosity = getintfield_default(L, index,
"liquid_viscosity", f.liquid_viscosity);
getboolfield(L, index, "liquid_renewable", f.liquid_renewable);
// Amount of light the node emits
f.light_source = getintfield_default(L, index,
"light_source", f.light_source);