diff --git a/src/main/java/ch/njol/skript/expressions/arithmetic/ExprArithmetic.java b/src/main/java/ch/njol/skript/expressions/arithmetic/ExprArithmetic.java index 4e928b285ec..cffd4515c9b 100644 --- a/src/main/java/ch/njol/skript/expressions/arithmetic/ExprArithmetic.java +++ b/src/main/java/ch/njol/skript/expressions/arithmetic/ExprArithmetic.java @@ -35,6 +35,7 @@ import ch.njol.skript.util.LiteralUtils; import ch.njol.skript.util.Patterns; import ch.njol.util.Kleenean; +import com.google.common.collect.ImmutableSet; import org.bukkit.event.Event; import org.eclipse.jdt.annotation.Nullable; import org.skriptlang.skript.lang.arithmetic.Arithmetics; @@ -43,7 +44,6 @@ import java.lang.reflect.Array; import java.util.ArrayList; -import java.util.Set; import java.util.List; import java.util.Collection; @@ -258,7 +258,7 @@ public boolean init(Expression[] exprs, int matchedPattern, Kleenean isDelaye return error(firstClass, secondClass); } else { returnType = (Class) Classes.getSuperClassInfo(returnTypes).getC(); - knownReturnTypes = Set.of(returnTypes); + knownReturnTypes = ImmutableSet.copyOf(returnTypes); } } else if (returnType == null) { // lookup OperationInfo operationInfo = (OperationInfo) Arithmetics.lookupOperationInfo(operator, firstClass, secondClass);