diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/common/c_content.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index 4737f1993..58d8c473e 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -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); |