Skip to content

Commit

Permalink
Switch to .builtInRegistryHolder()
Browse files Browse the repository at this point in the history
  • Loading branch information
ZestyBlaze committed Oct 10, 2024
1 parent d3d26b1 commit 41f2ed5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@Override
public boolean canFireProjectileWeapon(ProjectileWeaponItem p_32144_) {
- return p_32144_ == Items.BOW;
+ return p_32144_.getDefaultInstance().is(net.neoforged.neoforge.common.Tags.Items.SKELETON_USABLE_BOWS);
+ return p_32144_.builtInRegistryHolder().is(net.neoforged.neoforge.common.Tags.Items.SKELETON_USABLE_BOWS);
}

@Override

0 comments on commit 41f2ed5

Please sign in to comment.