1
0
mirror of https://github.com/minetest-mods/unified_inventory.git synced 2025-04-13 15:50:24 +02:00

Fix crash caused by bag swapping

This commit is contained in:
SmallJoker 2018-08-10 16:11:35 +02:00
parent 5cff869c27
commit 77c3de08ce

@ -200,6 +200,8 @@ minetest.register_on_joinplayer(function(player)
end
return 1
end
-- New bag is smaller: Disallow inserting
return 0
end,
allow_take = function(inv, listname, index, stack, player)
if player:get_inventory():is_empty(listname.."contents") then