mirror of
https://github.com/oasisfeng/deagle.git
synced 2025-01-08 11:47:36 +08:00
FIX: Method with primitive return type in Mirrored hack class is not working.
This commit is contained in:
parent
5e1d0bd272
commit
17ba44f359
@ -226,7 +226,7 @@ public class Hack {
|
||||
return source_result;
|
||||
} else {
|
||||
final Class<?> mirror_return_type = mirror_method.getReturnType();
|
||||
if (mirror_return_type.isAssignableFrom(source_result.getClass())) return source_result;
|
||||
if (mirror_return_type.isPrimitive() || mirror_return_type.isAssignableFrom(source_result.getClass())) return source_result;
|
||||
//noinspection unchecked
|
||||
return into(source_result).with((Class) mirror_return_type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user