Skip to content

Commit

Permalink
fire loose event for BowItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Spinoscythe committed Jun 25, 2024
1 parent bba0fd2 commit a47f848
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions patches/net/minecraft/world/item/BowItem.java.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
--- a/net/minecraft/world/item/BowItem.java
+++ b/net/minecraft/world/item/BowItem.java
@@ -26,7 +_,7 @@
public void releaseUsing(ItemStack p_40667_, Level p_40668_, LivingEntity p_40669_, int p_40670_) {
if (p_40669_ instanceof Player player) {
ItemStack itemstack = player.getProjectile(p_40667_);
- if (!itemstack.isEmpty()) {
+ if (!itemstack.isEmpty()) { // Porting 1.20.5 redo EventHooks.onArrowLoose
int i = this.getUseDuration(p_40667_, p_40669_) - p_40670_;
float f = getPowerForTime(i);
if (!((double)f < 0.1)) {
@@ -82,6 +_,10 @@
public InteractionResultHolder<ItemStack> use(Level p_40672_, Player p_40673_, InteractionHand p_40674_) {
ItemStack itemstack = p_40673_.getItemInHand(p_40674_);
Expand Down

0 comments on commit a47f848

Please sign in to comment.