From e05b7dbb3c89ddaf52a4c493a0d05f1ca2244dce Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 22 Jan 2020 09:19:27 +0000 Subject: Remove unused weight property from objects (#9320) --- src/script/common/c_content.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/script/common') diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index fc1d82bcc..ca061c454 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -208,8 +208,6 @@ void read_object_properties(lua_State *L, int index, getboolfield(L, -1, "physical", prop->physical); getboolfield(L, -1, "collide_with_objects", prop->collideWithObjects); - getfloatfield(L, -1, "weight", prop->weight); - lua_getfield(L, -1, "collisionbox"); bool collisionbox_defined = lua_istable(L, -1); if (collisionbox_defined) @@ -340,8 +338,6 @@ void push_object_properties(lua_State *L, ObjectProperties *prop) lua_setfield(L, -2, "physical"); lua_pushboolean(L, prop->collideWithObjects); lua_setfield(L, -2, "collide_with_objects"); - lua_pushnumber(L, prop->weight); - lua_setfield(L, -2, "weight"); push_aabb3f(L, prop->collisionbox); lua_setfield(L, -2, "collisionbox"); push_aabb3f(L, prop->selectionbox); -- cgit v1.2.3