From 279d898d68b020256ee5d8fa8e4dc1ae25727dcf Mon Sep 17 00:00:00 2001 From: DeltaNedas <39013340+DeltaNedas@users.noreply.github.com> Date: Sat, 24 Oct 2020 16:37:55 +0000 Subject: [PATCH] add more info to print object --- core/src/mindustry/logic/LExecutor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index a4eed29198..6db7d94d5c 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -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);