Inheritance Visual Efficiency

This commit is contained in:
Olof Larsson 2016-05-26 11:30:28 +02:00
parent b0558d310f
commit 66df3fd086
No known key found for this signature in database
GPG Key ID: BBEF14F97DA52474

View File

@ -188,7 +188,11 @@ public abstract class Property<O, V> implements Named
Mson ret = null; Mson ret = null;
if (source != null && ! source.equals(object)) if (source != null && ! source.equals(object))
{ {
ret = Mson.parse("<silver>[%s<silver>]").replaceAll("%s", this.getObjectType().getVisualMson(source)); ret = Mson.mson(
"[",
this.getObjectType().getVisualMson(source),
"]"
).color(ChatColor.GRAY);
} }
return ret; return ret;
} }