Update 'turtle/Wood.lua'
This commit is contained in:
parent
7d0287121f
commit
fd04524eaa
@ -389,3 +389,17 @@ function Wood:assertInvUpdate(update)
|
||||
self:updateInv()
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user