mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove unused weight property from objects (#9320)
This commit is contained in:
parent
3dfb6ecbb2
commit
e05b7dbb3c
5 changed files with 2 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue