pattern variables?

This commit is contained in:
DeltaNedas
2020-10-24 17:23:54 +00:00
committed by GitHub
parent 801ff1701e
commit 3b2669fa21

View File

@@ -876,11 +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 MappableContent ? ((MappableContent)v.objval).name :
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).block.name :
v.objval instanceof Unit ? ((Unit)v.objval).type.name :
v.objval instanceof Building build ? build.block.name :
v.objval instanceof Unit unit ? unit.type.name :
"[object]";
exec.textBuffer.append(strValue);