mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 05:27:37 +00:00
Treated all java primitive numbers as universally compatible in JS (methods requiring int accept float/double)
This commit is contained in:
1 parent
8539fe96a4
commit
5899ea7932
1 file changed
+1
@@ -79,6 +79,7 @@ public final class TypeChecker {
|
||||
return true;
|
||||
}
|
||||
if (isNumericType(expectedName) && isNumericType(actualName)) {
|
||||
if (isJavaScriptMode()) return true;
|
||||
return canWiden(actualName, expectedName);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user