mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Inventory mouse shortcut improvements (#13146)
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
This commit is contained in:
@@ -392,6 +392,13 @@ bool ItemStack::itemFits(ItemStack newitem,
|
||||
return newitem.empty();
|
||||
}
|
||||
|
||||
bool ItemStack::stacksWith(ItemStack other) const
|
||||
{
|
||||
return (this->name == other.name &&
|
||||
this->wear == other.wear &&
|
||||
this->metadata == other.metadata);
|
||||
}
|
||||
|
||||
ItemStack ItemStack::takeItem(u32 takecount)
|
||||
{
|
||||
if(takecount == 0 || count == 0)
|
||||
|
Reference in New Issue
Block a user