summaryrefslogtreecommitdiffstats
path: root/nms-patches/ItemBow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/ItemBow.patch')
-rw-r--r--nms-patches/ItemBow.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/nms-patches/ItemBow.patch b/nms-patches/ItemBow.patch
index b168fc48..d17d8d15 100644
--- a/nms-patches/ItemBow.patch
+++ b/nms-patches/ItemBow.patch
@@ -1,14 +1,14 @@
--- a/net/minecraft/server/ItemBow.java
+++ b/net/minecraft/server/ItemBow.java
-@@ -1,6 +1,7 @@
+@@ -1,5 +1,7 @@
package net.minecraft.server;
- import javax.annotation.Nullable;
+import org.bukkit.event.entity.EntityCombustEvent; // CraftBukkit
-
++
public class ItemBow extends Item {
-@@ -75,7 +76,20 @@
+ public ItemBow() {
+@@ -73,7 +75,20 @@
}
if (EnchantmentManager.getEnchantmentLevel(Enchantments.ARROW_FIRE, itemstack) > 0) {
@@ -30,7 +30,7 @@
}
itemstack.damage(1, entityhuman);
-@@ -83,7 +97,15 @@
+@@ -81,7 +96,15 @@
entityarrow.fromPlayer = EntityArrow.PickupStatus.CREATIVE_ONLY;
}
@@ -46,4 +46,4 @@
+ // CraftBukkit end
}
- world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.v, SoundCategory.NEUTRAL, 1.0F, 1.0F / (ItemBow.j.nextFloat() * 0.4F + 1.2F) + f * 0.5F);
+ world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.w, SoundCategory.PLAYERS, 1.0F, 1.0F / (ItemBow.j.nextFloat() * 0.4F + 1.2F) + f * 0.5F);