Compare commits

...

1 Commits

Author SHA1 Message Date
SmallJoker 15afd559f6 Fix crash caused by bag swapping 2018-08-10 16:11:35 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -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