mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Custom collision boxes node property.
This commit is contained in:
parent
b11e1db809
commit
e5652cb75c
7 changed files with 35 additions and 5 deletions
|
@ -432,6 +432,11 @@ ContentFeatures read_content_features(lua_State *L, int index)
|
|||
f.selection_box = read_nodebox(L, -1);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_getfield(L, index, "collision_box");
|
||||
if(lua_istable(L, -1))
|
||||
f.collision_box = read_nodebox(L, -1);
|
||||
lua_pop(L, 1);
|
||||
|
||||
f.waving = getintfield_default(L, index,
|
||||
"waving", f.waving);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue