Skip to content

Commit

Permalink
修复附魔台可以给榴弹以外的武器附魔微型导弹魔咒的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChloePrime committed Oct 22, 2024
1 parent ff7971b commit 016f9b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ private void onBulletCreate(BulletCreateEvent event) {
}

@Override
public boolean canEnchant(@Nonnull ItemStack stack) {
return super.canEnchant(stack) && isGrenadeLauncher(stack);
public boolean canApplyAtEnchantingTable(@Nonnull ItemStack stack) {
return super.canApplyAtEnchantingTable(stack) && isGrenadeLauncher(stack);
}

public static boolean isGrenadeLauncher(ItemStack stack) {
Expand Down

0 comments on commit 016f9b9

Please sign in to comment.