Update 'turtle/Wood.lua'
This commit is contained in:
@@ -388,4 +388,18 @@ function Wood:assertInvUpdate(update)
|
|||||||
if update == true then
|
if update == true then
|
||||||
self:updateInv()
|
self:updateInv()
|
||||||
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
|
end
|
Reference in New Issue
Block a user