add more info to print object

This commit is contained in:
DeltaNedas
2020-10-24 16:37:55 +00:00
committed by GitHub
parent a930b34c3e
commit 279d898d68

View File

@@ -877,9 +877,9 @@ public class LExecutor{
String strValue =
v.objval == null ? "null" :
v.objval instanceof String ? (String)v.objval :
v.objval instanceof Content ? "[content]" :
v.objval instanceof Building ? "[building]" :
v.objval instanceof Unit ? "[unit]" :
v.objval instanceof MappableContent ? "[content] " + ((MappableContent)v.objval).name :
v.objval instanceof Building ? "[building] " + ((Building)v.objval).block.name :
v.objval instanceof Unit ? "[unit] " + ((Unit)v.objval).type.name :
"[object]";
exec.textBuffer.append(strValue);