@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/ItemEnderPearl.java
|
||||
+++ b/net/minecraft/server/ItemEnderPearl.java
|
||||
@@ -10,18 +10,26 @@
|
||||
@@ -9,18 +9,26 @@
|
||||
public InteractionResultWrapper<ItemStack> a(World world, EntityHuman entityhuman, EnumHand enumhand) {
|
||||
ItemStack itemstack = entityhuman.b(enumhand);
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
itemstack.subtract(1);
|
||||
}
|
||||
|
||||
world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.bn, SoundCategory.NEUTRAL, 0.5F, 0.4F / (ItemEnderPearl.j.nextFloat() * 0.4F + 0.8F));
|
||||
world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.ENTITY_ENDER_PEARL_THROW, SoundCategory.NEUTRAL, 0.5F, 0.4F / (ItemEnderPearl.k.nextFloat() * 0.4F + 0.8F));
|
||||
entityhuman.getCooldownTracker().a(this, 20);
|
||||
- if (!world.isClientSide) {
|
||||
- EntityEnderPearl entityenderpearl = new EntityEnderPearl(world, entityhuman);
|
||||
@@ -31,5 +31,5 @@
|
||||
- }
|
||||
+ // CraftBukkit end
|
||||
|
||||
entityhuman.b(StatisticList.b((Item) this));
|
||||
entityhuman.b(StatisticList.ITEM_USED.b(this));
|
||||
return new InteractionResultWrapper(EnumInteractionResult.SUCCESS, itemstack);
|
||||
|
||||
Reference in New Issue
Block a user