mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2024-12-30 23:17:53 +02:00
more standard argument ordering on clamp (function not used so far)
This commit is contained in:
parent
20e4c4f335
commit
11a288c897
@ -18,7 +18,7 @@ Public.pi = math.pi
|
||||
Public.deg = math.deg
|
||||
Public.round = math.round
|
||||
|
||||
function Public.clamp(min, max, number)
|
||||
function Public.clamp(number, min, max)
|
||||
if number < min then
|
||||
return min
|
||||
elseif number > max then
|
||||
|
Loading…
Reference in New Issue
Block a user