Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 00:22:51 +01:00
Only add dummy enchantment once
Dieser Commit ist enthalten in:
Ursprung
b556e6528a
Commit
a8ef3c890a
@ -390,6 +390,9 @@ public final class StructuredDataConverter {
|
||||
if (enchantmentsTag == null) {
|
||||
enchantmentsTag = new ListTag<>(CompoundTag.class);
|
||||
tag.put("Enchantments", enchantmentsTag);
|
||||
} else if (!enchantmentsTag.isEmpty()) {
|
||||
// If there already are enchantments, we don't need to add an invalid one
|
||||
return;
|
||||
}
|
||||
|
||||
final CompoundTag invalidEnchantment = new CompoundTag();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren