mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-04 11:02:54 +00:00
Fix argument index in expect call
This commit is contained in:
parent
a48c3d0ba8
commit
c1c01bef7c
@ -121,10 +121,9 @@ handleMetatable = {
|
|||||||
local handle = self._handle
|
local handle = self._handle
|
||||||
if not handle.write then return nil, "file is not writable" end
|
if not handle.write then return nil, "file is not writable" end
|
||||||
|
|
||||||
local n = select("#", ...)
|
for i = 1, select("#", ...) do
|
||||||
for i = 1, n do
|
|
||||||
local arg = select(i, ...)
|
local arg = select(i, ...)
|
||||||
expect(1, arg, "string", "number")
|
expect(i, arg, "string", "number")
|
||||||
handle.write(arg)
|
handle.write(arg)
|
||||||
end
|
end
|
||||||
return self
|
return self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user