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.
1 parent ce6ef76 commit d9fd70aCopy full SHA for d9fd70a
src/main/java/org/moddingx/libx/util/game/ComponentUtil.java
@@ -171,10 +171,10 @@ private static Component toPrettyComponent(ResourceKey<Registry<DataComponentTyp
171
MutableComponent cmp = Component.literal("[");
172
boolean first = true;
173
for (ResourceLocation typeId : typeMap.keySet().stream().sorted().toList()) {
174
- if (first) {
175
- first = false;
+ if (!first) {
176
cmp = cmp.append(", ");
177
}
+ first = false;
178
DataComponentType<?> type = typeMap.get(typeId);
179
Optional<?> maybeValue = map.get(type);
180
if (maybeValue.isEmpty()) {
0 commit comments