Update prog2/ATM.lua
This commit is contained in:
1 parent
1f1bdd8a41
commit
7c0536d0d5
1 file changed
+5
-5
+5
-5
@@ -32,11 +32,11 @@ local answer = io.read()
|
|||||||
--local id = disk.getID("bottom")
|
--local id = disk.getID("bottom")
|
||||||
if answer == "d" or answer == "deposit" then
|
if answer == "d" or answer == "deposit" then
|
||||||
local item = turtle.getItemDetail()
|
local item = turtle.getItemDetail()
|
||||||
--if item.name ~= "minecraft:iron_ingot" or item.name == nil then
|
if item.name ~= "minecraft:iron_ingot" or item.name == nil then
|
||||||
-- print("Please insert iron ingots!")
|
print("Please insert iron ingots!")
|
||||||
-- sleep(1)
|
sleep(1)
|
||||||
-- shell.run("reboot")
|
shell.run("reboot")
|
||||||
--end
|
end
|
||||||
|
|
||||||
local ironCount = turtle.getItemCount()
|
local ironCount = turtle.getItemCount()
|
||||||
--local card = fs.open("/disk/money.lua", "r")
|
--local card = fs.open("/disk/money.lua", "r")
|
||||||
|
|||||||
Reference in new issue
Block a user