mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-20 02:45:35 +00:00
ecmascript and push byte fix
This commit is contained in:
@@ -48,8 +48,13 @@ public class EcmaScript {
|
||||
return (double) (int) (Integer) o;
|
||||
}
|
||||
if (o instanceof String) {
|
||||
String str = (String) o;
|
||||
if (str.isEmpty()) {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
try {
|
||||
return Double.parseDouble((String) o);
|
||||
return Double.parseDouble(str);
|
||||
} catch (NumberFormatException nfe) {
|
||||
return Double.NaN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user