mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-03-07 13:48:00 +08:00
Ensure non-Double types are boxed in expression function calls. Fixes #2315
This commit is contained in:
parent
abc8c1f256
commit
237ebc1016
@ -72,6 +72,7 @@ private static MethodHandle clean(MethodHandle handle) {
|
||||
"Function does not return a number");
|
||||
handle = handle.asType(handle.type().changeReturnType(Number.class));
|
||||
handle = filterReturnValue(handle, DOUBLE_VALUE);
|
||||
handle = handle.asType(handle.type().wrap());
|
||||
}
|
||||
// return vararg-ity
|
||||
if (wasVarargs) {
|
||||
|
Loading…
Reference in New Issue
Block a user