mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
parent
c8d3d11339
commit
ae9b5e0098
31 changed files with 428 additions and 523 deletions
|
@ -32,11 +32,12 @@ struct ToolCapabilities;
|
|||
|
||||
struct ItemStack
|
||||
{
|
||||
ItemStack() {}
|
||||
ItemStack() = default;
|
||||
|
||||
ItemStack(const std::string &name_, u16 count_,
|
||||
u16 wear, IItemDefManager *itemdef);
|
||||
|
||||
~ItemStack() {}
|
||||
~ItemStack() = default;
|
||||
|
||||
// Serialization
|
||||
void serialize(std::ostream &os) const;
|
||||
|
@ -132,10 +133,8 @@ struct ItemStack
|
|||
wear += amount;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// If possible, adds newitem to this item.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue