mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-16 23:25:12 +00:00
cleanup code
This commit is contained in:
51 files changed
+637
-373
No files matched your search
@@ -603,9 +603,12 @@ public final class MathUtil {
|
||||
f6 = f2;
|
||||
break;
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Something went wrong when converting from HSV to RGB. Input was " + hue + ", " + saturation +
|
||||
", " + value);
|
||||
throw new RuntimeException("Something went wrong when converting from HSV to RGB. Input was "
|
||||
+ hue
|
||||
+ ", "
|
||||
+ saturation
|
||||
+ ", "
|
||||
+ value);
|
||||
}
|
||||
|
||||
int j = clamp((int) (f4 * 255.0F), 0, 255);
|
||||
|
||||
@@ -71,6 +71,7 @@ public final class RenderUtil {
|
||||
* @param iconName The icon name
|
||||
* @param width The icon width in pixels
|
||||
* @param height The icon height in pixels
|
||||
*
|
||||
* @return The full resolution texture icon.
|
||||
*/
|
||||
@StableAPI.Expose(since = "0.10.0")
|
||||
|
||||
@@ -128,8 +128,10 @@ public final class ResourceUtil {
|
||||
}
|
||||
}
|
||||
//Fallback logic
|
||||
System.out.println("Using fallback resource loading logic for " + resourcePath + " with reference to " +
|
||||
referenceClass.getName());
|
||||
System.out.println("Using fallback resource loading logic for "
|
||||
+ resourcePath
|
||||
+ " with reference to "
|
||||
+ referenceClass.getName());
|
||||
return referenceClass.getResourceAsStream(resourcePath);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user