mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Inventory: skip redundant stack movement
The list of dragged stacks includes the source stack, which however does not need to be moved onto itself. This is an optimization.
This commit is contained in:
@@ -43,7 +43,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
bool operator==(const ItemSpec& other)
|
||||
bool operator==(const ItemSpec& other) const
|
||||
{
|
||||
return inventoryloc == other.inventoryloc &&
|
||||
listname == other.listname && i == other.i;
|
||||
|
Reference in New Issue
Block a user