add more info to print object
This commit is contained in:
@@ -877,9 +877,9 @@ public class LExecutor{
|
|||||||
String strValue =
|
String strValue =
|
||||||
v.objval == null ? "null" :
|
v.objval == null ? "null" :
|
||||||
v.objval instanceof String ? (String)v.objval :
|
v.objval instanceof String ? (String)v.objval :
|
||||||
v.objval instanceof Content ? "[content]" :
|
v.objval instanceof MappableContent ? "[content] " + ((MappableContent)v.objval).name :
|
||||||
v.objval instanceof Building ? "[building]" :
|
v.objval instanceof Building ? "[building] " + ((Building)v.objval).block.name :
|
||||||
v.objval instanceof Unit ? "[unit]" :
|
v.objval instanceof Unit ? "[unit] " + ((Unit)v.objval).type.name :
|
||||||
"[object]";
|
"[object]";
|
||||||
|
|
||||||
exec.textBuffer.append(strValue);
|
exec.textBuffer.append(strValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user