add Content fallback

This commit is contained in:
DeltaNedas 2020-10-24 17:04:58 +00:00 committed by GitHub
parent 279d898d68
commit 364a2b43c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -878,6 +878,7 @@ public class LExecutor{
v.objval == null ? "null" :
v.objval instanceof String ? (String)v.objval :
v.objval instanceof MappableContent ? "[content] " + ((MappableContent)v.objval).name :
v.objval instanceof Content ? "[content]" :
v.objval instanceof Building ? "[building] " + ((Building)v.objval).block.name :
v.objval instanceof Unit ? "[unit] " + ((Unit)v.objval).type.name :
"[object]";