From 3f849edf09233087ed98b116ca0050ed25401fd5 Mon Sep 17 00:00:00 2001 From: ThePython Date: Sat, 25 Mar 2023 16:23:42 -0700 Subject: [PATCH] Fixed `listring`s? --- constructor.lua | 3 +++ energy_collector.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/constructor.lua b/constructor.lua index 52bcdc3..1cb7206 100644 --- a/constructor.lua +++ b/constructor.lua @@ -119,6 +119,9 @@ local function allow_metadata_inventory_put(pos, listname, index, stack, player) end elseif listname == "src" or listname == "dst" then return stack:get_count() + + elseif listname == "dst" then + return 0 end end diff --git a/energy_collector.lua b/energy_collector.lua index fe2e7d5..9c0d078 100644 --- a/energy_collector.lua +++ b/energy_collector.lua @@ -13,7 +13,7 @@ function get_energy_collector_formspec() local formspec = { "size[8,10]", "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), "list[current_player;main;0,5;9,3;9]", mcl_formspec.get_itemslot_bg(0,5,9,3),