Fix wood farmers becoming stuck in trees

This commit is contained in:
Kai Vogelgesang 2020-07-11 23:45:27 +02:00
parent b8a9ab5342
commit dbd2687ffe

View File

@ -169,7 +169,10 @@ local state_machine = {
["FINALIZE_TREE"] = function() ["FINALIZE_TREE"] = function()
-- make sure we are directly above the sapling target -- make sure we are directly above the sapling target
while T.state.y > 0 do while T.state.y > 0 do
T.down() while not T.down() do
-- another tree might have spawned leaves below us
turtle.digDown()
end
end end
turtle.select(SAP_SLOT) turtle.select(SAP_SLOT)