Useless stuff

This commit is contained in:
Jean-Patrick Guerrero 2020-12-31 01:37:57 +01:00
parent 3b1f71722f
commit ae0e8f4be7
1 changed files with 3 additions and 2 deletions

View File

@ -1096,6 +1096,7 @@ local function select_item(player, name, data, _f)
stack = sprintf("%s %s", item, stackmax) stack = sprintf("%s %s", item, stackmax)
get_stack(player, name, stack, clr("#ff0", sprintf("%u x %s", stackmax, item))) get_stack(player, name, stack, clr("#ff0", sprintf("%u x %s", stackmax, item)))
end end
return return
end end
@ -1809,7 +1810,7 @@ local function show_fs(player, name)
end end
local trash = core.create_detached_inventory("i3_trash", { local trash = core.create_detached_inventory("i3_trash", {
allow_put = function(inv, listname, index, stack, player) allow_put = function(inv, listname, index, stack)
return stack:get_count() return stack:get_count()
end, end,
on_put = function(inv, listname) on_put = function(inv, listname)
@ -1819,7 +1820,7 @@ local trash = core.create_detached_inventory("i3_trash", {
trash:set_size("main", 1) trash:set_size("main", 1)
core.register_on_player_inventory_action(function(player, action, inventory, info) core.register_on_player_inventory_action(function(player, action, inv, info)
if (info.from_list == "main" and info.to_list == "craft") or if (info.from_list == "main" and info.to_list == "craft") or
(info.from_list == "craft" and info.to_list == "main") then (info.from_list == "craft" and info.to_list == "main") then
local name = player:get_player_name() local name = player:get_player_name()