Skip to content

Commit

Permalink
Fix crash caused by bag swapping
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Aug 10, 2018
1 parent 5cff869 commit 77c3de0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77c3de0

Please sign in to comment.