From 77c3de08ced2149706e8c3656e1b14f06cf4d7d0 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Fri, 10 Aug 2018 16:11:35 +0200 Subject: [PATCH] Fix crash caused by bag swapping --- bags.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bags.lua b/bags.lua index a946cb0..6f07314 100644 --- a/bags.lua +++ b/bags.lua @@ -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