Allow JSON Mods To Disable Progress Clamping (#10114)
* par * 1. im dumb 2. im stupid
This commit is contained in:
@@ -96,9 +96,13 @@ public abstract class DrawPart{
|
||||
}
|
||||
|
||||
default float getClamp(PartParams p){
|
||||
return Mathf.clamp(get(p));
|
||||
return getClamp(p, true);
|
||||
}
|
||||
|
||||
|
||||
default float getClamp(PartParams p, boolean clamp){
|
||||
return clamp ? Mathf.clamp(get(p)) : get(p);
|
||||
}
|
||||
|
||||
default PartProgress inv(){
|
||||
return p -> 1f - get(p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user