Compare commits

...

1 Commits

Author SHA1 Message Date
Freedom c2e5f7d3fd mcl_chests func limit_put security check
fixes #3997
2023-11-05 13:20:22 +01:00
1 changed files with 1 additions and 0 deletions

View File

@ -378,6 +378,7 @@ local function register_chest(basename, desc, longdesc, usagehelp, tt_help, tile
end
local function limit_put(stack, inv1, inv2)
if not stack or not inv1 or not inv2 then return end
local leftover = ItemStack(stack)
leftover = limit_put_list(leftover, inv1:get_list("main"))
leftover = limit_put_list(leftover, inv2:get_list("main"))