Changed from instanceof to check if attrs is simple

This commit is contained in:
Collin Smith
2020-09-06 01:41:42 -07:00
parent b5c33a313f
commit f69db25728

View File

@ -54,7 +54,7 @@ public class AttributesUpdater {
}
public Attributes add(Attributes attrs, StatListGetter stats, Attributes opAttrs, CharStats.Entry charStats) {
if (!(attrs instanceof AggregateAttributes)) return attrs; // no-op
if (attrs.isSimpleType()) return attrs; // no-op
final StatListGetter base = attrs.base();
final StatListBuilder agg = attrs.aggregate().builder();
final StatListBuilder rem = attrs.remaining().builder();