Skip to content

Commit

Permalink
fix: item that does not have enchant value cannot be enchanted
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Oct 7, 2024
1 parent ec6695e commit bc39124
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public final class EnchantmentOptionGenerator {
);

public static List<EnchantOptionData> generateEnchantOptions(Position3ic enchantTablePos, ItemStack input, int seed) {
if (input == null || input.hasEnchantment()) {
if (input == null || input.hasEnchantment() || input.getItemData().enchantValue() == 0) {
return Collections.emptyList();
}

Expand Down

0 comments on commit bc39124

Please sign in to comment.