mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 03:25:11 +01:00
Only add dummy enchantment once
This commit is contained in:
parent
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();
|
||||
|
Loading…
Reference in New Issue
Block a user