File tree 1 file changed +3
-3
lines changed
src/main/resources/assets/computronics/lua/component/tape_drive/bin
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ local function writeTape(path)
179
179
end
180
180
181
181
local connected , reason = false , " "
182
- for i = 1 , 50 , 1 do
182
+ for i = 1 , 50 do
183
183
connected , reason = file .finishConnect ()
184
184
os .sleep (.1 )
185
185
if connected or connected == nil then
@@ -195,9 +195,9 @@ local function writeTape(path)
195
195
local status , message , header = file .response ()
196
196
197
197
if status then
198
- status = math.tointeger and math.tointeger ( status ) or status
198
+ status = string.format ( " %d " , status )
199
199
print (" Status: " .. status .. " " .. message )
200
- if string.format ( " %d " , status ) :sub (1 ,1 ) == " 2" then
200
+ if status :sub (1 ,1 ) == " 2" then
201
201
return true , {
202
202
close = function (self , ...) return file .close (... ) end ,
203
203
read = function (self , ...) return file .read (... ) end ,
You can’t perform that action at this time.
0 commit comments