From 190b5d0cc8404eb9938466a4119841b295cbf354 Mon Sep 17 00:00:00 2001 From: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:12:55 -0500 Subject: [PATCH 1/2] patch ready --- .../java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java b/src/main/java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java index 27a8065e122..8bff6e0f02e 100644 --- a/src/main/java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java +++ b/src/main/java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java @@ -72,7 +72,7 @@ public static void registerOperation(Operator operator, Class leftC getOperations_i(operator).add(new OperationInfo<>(leftClass, rightClass, returnType, operation)); } - private static boolean exactOperationExists(Operator operator, Class leftClass, Class rightClass) { + public static boolean exactOperationExists(Operator operator, Class leftClass, Class rightClass) { for (OperationInfo info : getOperations_i(operator)) { if (info.getLeft() == leftClass && info.getRight() == rightClass) return true; From d38a0c9dd9a733645c29c46df5e596d65db3b386 Mon Sep 17 00:00:00 2001 From: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:26:05 -0500 Subject: [PATCH 2/2] Change 'exactDifferenceExists' --- .../java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java b/src/main/java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java index 8bff6e0f02e..10563db0b68 100644 --- a/src/main/java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java +++ b/src/main/java/org/skriptlang/skript/lang/arithmetic/Arithmetics.java @@ -188,7 +188,7 @@ public static void registerDifference(Class type, Class returnType, differences.put(type, new DifferenceInfo<>(type, returnType, operation)); } - private static boolean exactDifferenceExists(Class type) { + public static boolean exactDifferenceExists(Class type) { return differences.containsKey(type); }