mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Inventory: Fix assertion caused by a no-op stack movement
This commit is contained in:
parent
660151572f
commit
0ba899e239
@ -354,6 +354,9 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (list_from.get() == list_to.get() && from_i == to_i)
|
||||||
|
return; // Same slot
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Do not handle rollback if both inventories are that of the same player
|
Do not handle rollback if both inventories are that of the same player
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user