mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-11 07:39:39 +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){
|
||||
String strValue =
|
||||
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 Building ? "[building]" :
|
||||
v.objval instanceof Unit ? "[unit]" :
|
||||
v.objval instanceof Building build ? build.block.name :
|
||||
v.objval instanceof Unit unit ? unit.type.name :
|
||||
"[object]";
|
||||
|
||||
exec.textBuffer.append(strValue);
|
||||
|
Loading…
Reference in New Issue
Block a user