Update Enchantment.java

This commit is contained in:
Hahaa13 2024-07-06 11:21:09 +07:00 committed by GitHub
parent ff1e1dd7e3
commit bc4481a7d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,8 +62,7 @@ public record Enchantment(String identifier,
String exclusiveSet = data.getString("exclusive_set", null);
EnchantmentTag exclusiveSetTag = exclusiveSet == null ? null : EnchantmentTag.ALL_ENCHANTMENT_TAGS.get(MinecraftKey.key(exclusiveSet.substring(1)));
BedrockEnchantment bedrockEnchantment = BedrockEnchantment.getByJavaIdentifier(entry.getId().asString());
String description = bedrockEnchantment == null ? MessageTranslator.deserializeDescription(data) : null;
String description = "";
return new Enchantment(entry.getId().asString(), effects, ItemTag.ALL_ITEM_TAGS.get(MinecraftKey.key(supportedItems)), maxLevel,
description, anvilCost, exclusiveSetTag, bedrockEnchantment);
}