diff options
author | Wuzzy <wuzzy2@mail.ru> | 2020-01-22 09:19:27 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2020-01-22 10:19:27 +0100 |
commit | e05b7dbb3c89ddaf52a4c493a0d05f1ca2244dce (patch) | |
tree | 76194e6a7646cffffa9133935a82cd3400466b81 /src/script | |
parent | 3dfb6ecbb26516bcbcc1ef88860175e39af71381 (diff) | |
download | minetest-e05b7dbb3c89ddaf52a4c493a0d05f1ca2244dce.tar.gz minetest-e05b7dbb3c89ddaf52a4c493a0d05f1ca2244dce.tar.bz2 minetest-e05b7dbb3c89ddaf52a4c493a0d05f1ca2244dce.zip |
Remove unused weight property from objects (#9320)
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/common/c_content.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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); |