@@ -1,7 +1,7 @@
|
||||
--- a/net/minecraft/world/item/ItemBow.java
|
||||
+++ b/net/minecraft/world/item/ItemBow.java
|
||||
@@ -61,6 +61,14 @@
|
||||
if (EnchantmentManager.getEnchantmentLevel(Enchantments.ARROW_FIRE, itemstack) > 0) {
|
||||
@@ -64,6 +64,14 @@
|
||||
if (EnchantmentManager.getEnchantmentLevel(Enchantments.FLAMING_ARROWS, itemstack) > 0) {
|
||||
entityarrow.setOnFire(100);
|
||||
}
|
||||
+ // CraftBukkit start
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
itemstack.damage(1, entityhuman, (entityhuman1) -> {
|
||||
entityhuman1.broadcastItemBreak(entityhuman.getRaisedHand());
|
||||
@@ -69,7 +77,16 @@
|
||||
entityarrow.fromPlayer = EntityArrow.PickupStatus.CREATIVE_ONLY;
|
||||
@@ -72,7 +80,16 @@
|
||||
entityarrow.pickup = EntityArrow.PickupStatus.CREATIVE_ONLY;
|
||||
}
|
||||
|
||||
- world.addEntity(entityarrow);
|
||||
@@ -32,4 +32,4 @@
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
world.playSound((EntityHuman) null, entityhuman.locX(), entityhuman.locY(), entityhuman.locZ(), SoundEffects.ENTITY_ARROW_SHOOT, SoundCategory.PLAYERS, 1.0F, 1.0F / (ItemBow.RANDOM.nextFloat() * 0.4F + 1.2F) + f * 0.5F);
|
||||
world.playSound((EntityHuman) null, entityhuman.locX(), entityhuman.locY(), entityhuman.locZ(), SoundEffects.ARROW_SHOOT, SoundCategory.PLAYERS, 1.0F, 1.0F / (world.getRandom().nextFloat() * 0.4F + 1.2F) + f * 0.5F);
|
||||
|
||||
Reference in New Issue
Block a user