Update 'turtle/Wood.lua'

This commit is contained in:
manuel 2023-01-08 11:01:39 +00:00
parent 7d0287121f
commit fd04524eaa

View File

@ -389,3 +389,17 @@ function Wood:assertInvUpdate(update)
self:updateInv() self:updateInv()
end end
end end
function Wood:refuel(goBack)
if (goBack == nil) then goBack = true end
if(goBack == true) then
goBack = {self.x, self.y, self.z, self.dir}
end
self:clearInv("coalChest")
turtle.select(1)
turtle.suckDown()
turtle.refuel()
self:moveTo(goBack)
end