Fixed `listring`s?

This commit is contained in:
ThePython 2023-03-25 16:23:42 -07:00
parent 196e098c57
commit 3f849edf09
2 changed files with 4 additions and 1 deletions

View File

@ -119,6 +119,9 @@ local function allow_metadata_inventory_put(pos, listname, index, stack, player)
end end
elseif listname == "src" or listname == "dst" then elseif listname == "src" or listname == "dst" then
return stack:get_count() return stack:get_count()
elseif listname == "dst" then
return 0
end end
end end

View File

@ -13,7 +13,7 @@ function get_energy_collector_formspec()
local formspec = { local formspec = {
"size[8,10]", "size[8,10]",
"label[3,2;Orb]", "label[3,2;Orb]",
"list[context;dist;4,2;1,1;]", "list[context;dst;4,2;1,1;]",
mcl_formspec.get_itemslot_bg(4,2,1,1), mcl_formspec.get_itemslot_bg(4,2,1,1),
"list[current_player;main;0,5;9,3;9]", "list[current_player;main;0,5;9,3;9]",
mcl_formspec.get_itemslot_bg(0,5,9,3), mcl_formspec.get_itemslot_bg(0,5,9,3),