mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 12:00:45 +00:00
Debugger - view constantpool
remove .0 suffixes on number values during debugging
This commit is contained in:
@@ -507,6 +507,13 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<ABC
|
||||
case VariableType.STRING:
|
||||
return "\"" + Helper.escapeActionScriptString("" + v.value) + "\"";
|
||||
default:
|
||||
if (v.value instanceof Number) {
|
||||
String sv = "" + v.value;
|
||||
if (sv.endsWith(".0")) {
|
||||
sv = sv.substring(0, sv.length() - 2);
|
||||
}
|
||||
return sv;
|
||||
}
|
||||
return "" + v.value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user