1
0
Fork 0

Fixed minor bug and removed TODO commentary

mcl-structures-fixes
anarquimico 2022-11-10 21:11:32 -03:00
parent 3072d44b66
commit cb721f37ce
1 changed files with 4 additions and 1 deletions

View File

@ -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)