Add files via upload

This commit is contained in:
loosewheel
2022-02-27 10:03:39 +10:00
committed by GitHub
parent 914bdbbe30
commit e4b3ae935d
13 changed files with 1253 additions and 52 deletions

View File

@@ -389,6 +389,11 @@ local function output_items (pos, name, count)
end
local stack = ItemStack (name)
if stack:get_stack_max () < count then
count = stack:get_stack_max ()
end
stack:set_count (count)
while stack:get_count () > 0 do
@@ -738,7 +743,7 @@ local function get_formspec_list (pos)
}
end
local foo = table.sort (list , function (e1, e2)
table.sort (list , function (e1, e2)
return (e1.description:lower () < e2.description:lower ())
end)