summaryrefslogtreecommitdiff
path: root/unified_inventory
diff options
context:
space:
mode:
Diffstat (limited to 'unified_inventory')
-rw-r--r--unified_inventory/bags.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/unified_inventory/bags.lua b/unified_inventory/bags.lua
index a946cb0..6f07314 100644
--- a/unified_inventory/bags.lua
+++ b/unified_inventory/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