Update 'turtle/Wood.lua'
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user