mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-14 03:49:13 +07:00
Merge pull request #3093 from DeltaNedas/patch-11
add more info to print object
This commit is contained in:
commit
94e40a32b9
@ -876,10 +876,11 @@ public class LExecutor{
|
|||||||
if(v.isobj && value != 0){
|
if(v.isobj && value != 0){
|
||||||
String strValue =
|
String strValue =
|
||||||
v.objval == null ? "null" :
|
v.objval == null ? "null" :
|
||||||
v.objval instanceof String ? (String)v.objval :
|
v.objval instanceof String s ? s :
|
||||||
|
v.objval instanceof MappableContent content ? content.name :
|
||||||
v.objval instanceof Content ? "[content]" :
|
v.objval instanceof Content ? "[content]" :
|
||||||
v.objval instanceof Building ? "[building]" :
|
v.objval instanceof Building build ? build.block.name :
|
||||||
v.objval instanceof Unit ? "[unit]" :
|
v.objval instanceof Unit unit ? unit.type.name :
|
||||||
"[object]";
|
"[object]";
|
||||||
|
|
||||||
exec.textBuffer.append(strValue);
|
exec.textBuffer.append(strValue);
|
||||||
|
Loading…
Reference in New Issue
Block a user