mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2025-06-29 06:50:35 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
15afd559f6 |
2
bags.lua
2
bags.lua
@ -200,6 +200,8 @@ minetest.register_on_joinplayer(function(player)
|
|||||||
end
|
end
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
-- New bag is smaller: Disallow inserting
|
||||||
|
return 0
|
||||||
end,
|
end,
|
||||||
allow_take = function(inv, listname, index, stack, player)
|
allow_take = function(inv, listname, index, stack, player)
|
||||||
if player:get_inventory():is_empty(listname.."contents") then
|
if player:get_inventory():is_empty(listname.."contents") then
|
||||||
|
Reference in New Issue
Block a user