Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-16 04:50:08 +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) {
|
if (enchantmentsTag == null) {
|
||||||
enchantmentsTag = new ListTag<>(CompoundTag.class);
|
enchantmentsTag = new ListTag<>(CompoundTag.class);
|
||||||
tag.put("Enchantments", enchantmentsTag);
|
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();
|
final CompoundTag invalidEnchantment = new CompoundTag();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren