mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-09 22:28:34 +00:00
Ensure non-Double types are boxed in expression function calls.
This commit is contained in:
@ -75,6 +75,7 @@ public final class Functions {
|
|||||||
);
|
);
|
||||||
handle = handle.asType(handle.type().changeReturnType(Number.class));
|
handle = handle.asType(handle.type().changeReturnType(Number.class));
|
||||||
handle = filterReturnValue(handle, DOUBLE_VALUE);
|
handle = filterReturnValue(handle, DOUBLE_VALUE);
|
||||||
|
handle = handle.asType(handle.type().wrap());
|
||||||
}
|
}
|
||||||
// return vararg-ity
|
// return vararg-ity
|
||||||
if (wasVarargs) {
|
if (wasVarargs) {
|
||||||
|
Reference in New Issue
Block a user