fix inventory.set

This commit is contained in:
MihailRis 2025-12-16 00:36:09 +03:00
parent 180dd5051b
commit c394df4e07

View file

@ -73,6 +73,7 @@ static int l_set(lua::State* L, ItemStack& item) {
if (!data.isObject() && data != nullptr) {
throw std::runtime_error("invalid data argument type (table expected)");
}
validate_itemid(itemid);
item.set(ItemStack(itemid, count, std::move(data)));
return 0;
}