mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Add support for using arbitrary meshes as items
This commit is contained in:
@@ -58,6 +58,8 @@ ItemDefinition read_item_definition(lua_State* L,int index,
|
||||
getstringfield(L, index, "description", def.description);
|
||||
getstringfield(L, index, "inventory_image", def.inventory_image);
|
||||
getstringfield(L, index, "wield_image", def.wield_image);
|
||||
getstringfield(L, index, "mesh", def.meshname);
|
||||
getstringfield(L, index, "meshtexture", def.meshtexture);
|
||||
|
||||
lua_getfield(L, index, "wield_scale");
|
||||
if(lua_istable(L, -1)){
|
||||
|
Reference in New Issue
Block a user