mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-05-20 00:04:11 +00:00
Add the ability to call cc.expect directly
This commit is contained in:
parent
4592534a18
commit
e0a288bcb9
@ -114,8 +114,8 @@ local function range(num, min, max)
|
|||||||
return num
|
return num
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return setmetatable({
|
||||||
expect = expect,
|
expect = expect,
|
||||||
field = field,
|
field = field,
|
||||||
range = range,
|
range = range,
|
||||||
}
|
}, { __call = function(_, ...) return expect(...) end })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user