From cb721f37ce815a679525411b34ece05ab94916e9 Mon Sep 17 00:00:00 2001 From: anarquimico Date: Thu, 10 Nov 2022 21:11:32 -0300 Subject: [PATCH] Fixed minor bug and removed TODO commentary --- mods/ITEMS/mcl_hoppers/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_hoppers/init.lua b/mods/ITEMS/mcl_hoppers/init.lua index e3708629e..f1ef3e78e 100644 --- a/mods/ITEMS/mcl_hoppers/init.lua +++ b/mods/ITEMS/mcl_hoppers/init.lua @@ -514,21 +514,24 @@ minetest.register_abm({ local compchance = minetest.get_item_group(itemcomp[hslot]:get_name(), "compostability") if compchance == 0 then hslot = hslot+1 + if hslot == 6 then return end compchance = minetest.get_item_group(itemcomp[hslot]:get_name(), "compostability") if compchance == 0 then hslot = hslot+1 + if hslot == 6 then return end compchance = minetest.get_item_group(itemcomp[hslot]:get_name(), "compostability") if compchance == 0 then hslot = hslot+1 + if hslot == 6 then return end compchance = minetest.get_item_group(itemcomp[hslot]:get_name(), "compostability") if compchance == 0 then hslot = hslot+1 + if hslot == 6 then return end compchance = minetest.get_item_group(itemcomp[hslot]:get_name(), "compostability") end end end end - -- TODO: make it go to next hslot if item isn't compostable if compchance > 0 then itemcomp[hslot]:take_item() inv:set_list("main", itemcomp)