From e5652cb75cd891895fab50ce46eb34ab9734d160 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Sat, 18 Oct 2014 18:46:16 +0200 Subject: Custom collision boxes node property. --- src/script/common/c_content.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/script/common') 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); -- cgit v1.2.3