mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Leveled nodebox
This commit is contained in:
parent
a70993d6d2
commit
9733dd5b5e
6 changed files with 46 additions and 4 deletions
|
@ -389,6 +389,8 @@ ContentFeatures read_content_features(lua_State *L, int index)
|
|||
// the slowest possible
|
||||
f.liquid_viscosity = getintfield_default(L, index,
|
||||
"liquid_viscosity", f.liquid_viscosity);
|
||||
f.leveled = getintfield_default(L, index, "leveled", f.leveled);
|
||||
|
||||
getboolfield(L, index, "liquid_renewable", f.liquid_renewable);
|
||||
getboolfield(L, index, "drowning", f.drowning);
|
||||
// Amount of light the node emits
|
||||
|
|
|
@ -50,6 +50,7 @@ struct EnumString ScriptApiNode::es_ContentParamType2[] =
|
|||
{CPT2_FLOWINGLIQUID, "flowingliquid"},
|
||||
{CPT2_FACEDIR, "facedir"},
|
||||
{CPT2_WALLMOUNTED, "wallmounted"},
|
||||
{CPT2_LEVELED, "leveled"},
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
|
@ -73,6 +74,7 @@ struct EnumString ScriptApiNode::es_NodeBoxType[] =
|
|||
{NODEBOX_REGULAR, "regular"},
|
||||
{NODEBOX_FIXED, "fixed"},
|
||||
{NODEBOX_WALLMOUNTED, "wallmounted"},
|
||||
{NODEBOX_LEVELED, "leveled"},
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue