mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-04 00:15:45 +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.deg = math.deg
|
||||||
Public.round = math.round
|
Public.round = math.round
|
||||||
|
|
||||||
function Public.clamp(min, max, number)
|
function Public.clamp(number, min, max)
|
||||||
if number < min then
|
if number < min then
|
||||||
return min
|
return min
|
||||||
elseif number > max then
|
elseif number > max then
|
||||||
|
Loading…
Reference in New Issue
Block a user