remove fuel checking in VPrint entirely
This commit is contained in:
13
src/main.lua
13
src/main.lua
@@ -791,18 +791,7 @@ while true do
|
|||||||
local buf,dimensions = load(name)
|
local buf,dimensions = load(name)
|
||||||
local stacks = VP_createstack(buf, dimensions)
|
local stacks = VP_createstack(buf, dimensions)
|
||||||
|
|
||||||
if turtle.getFuelLevel() < cost then
|
VP_printstack(stacks, dimensions)
|
||||||
write("WARNING: Not enough fuel! Continue anyway? y/n: ")
|
|
||||||
while true do
|
|
||||||
local ans = read("")
|
|
||||||
if ans == "y" then
|
|
||||||
VP_printstack(stacks, dimensions)
|
|
||||||
break
|
|
||||||
elseif ans == "n" then break end
|
|
||||||
end
|
|
||||||
else
|
|
||||||
VP_printstack(stacks, dimensions)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user