mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Add get_wielded_item
This commit is contained in:
@@ -472,7 +472,7 @@ int ModApiEnvMod::l_add_item(lua_State *L)
|
||||
// pos
|
||||
//v3f pos = checkFloatPos(L, 1);
|
||||
// item
|
||||
ItemStack item = read_item(L, 2,getServer(L));
|
||||
ItemStack item = read_item(L, 2,getServer(L)->idef());
|
||||
if(item.empty() || !item.isKnown(getServer(L)->idef()))
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user