We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e52312d + 287d5df commit d861208Copy full SHA for d861208
Common/src/main/java/at/petrak/hexcasting/api/casting/iota/ListIota.java
@@ -136,7 +136,7 @@ public Component display(Tag tag) {
136
if (i < list.size() - 1) {
137
var thisIotaNeedsComma = IotaType.getTypeFromTag(csub) != PatternIota.TYPE;
138
var nextIotaNeedsComma = IotaType.getTypeFromTag(HexUtils.downcast(list.get(i+1), CompoundTag.TYPE)) != PatternIota.TYPE;
139
- var alwaysShowCommas = HexConfig.client().alwaysShowListCommas();
+ var alwaysShowCommas = HexConfig.client() != null && HexConfig.client().alwaysShowListCommas();
140
if (thisIotaNeedsComma || nextIotaNeedsComma || alwaysShowCommas)
141
out.append(", ");
142
}
0 commit comments