mirror of
https://github.com/minetest/minetest.git
synced 2025-07-03 08:20:23 +02:00
Remove unused weight property from objects (#9320)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user