Unprivate Arithmetics#exactOperationExists method
Fusezion opened this issue ยท 3 comments
Suggestion
Unprivate the exactOperationExists
method on the Arithmetics
class
Why?
Currently addons have no real way of checking if operations for arithmetic are currently registered making usage of the register unsafe
Other
Step to fix
- private static boolean exactOperationExists(Operator operator, Class<?> leftClass, Class<?> rightClass) {
+ public static boolean exactOperationExists(Operator operator, Class<?> leftClass, Class<?> rightClass) {
Agreement
- I have read the guidelines above and affirm I am following them with this suggestion.
Currently addons have no real way of checking if operations for arithmetic are currently registered making usage of the register unsafe
you can catch the skriptapiexception