Update CraftBukkit to Minecraft 1.4.6
This commit is contained in:
@@ -13,7 +13,7 @@ public class ItemBow extends Item {
|
||||
boolean flag = entityhuman.abilities.canInstantlyBuild || EnchantmentManager.getEnchantmentLevel(Enchantment.ARROW_INFINITE.id, itemstack) > 0;
|
||||
|
||||
if (flag || entityhuman.inventory.e(Item.ARROW.id)) {
|
||||
int j = this.a(itemstack) - i;
|
||||
int j = this.c_(itemstack) - i;
|
||||
float f = (float) j / 20.0F;
|
||||
|
||||
f = (f * f + f * 2.0F) / 3.0F;
|
||||
@@ -74,17 +74,17 @@ public class ItemBow extends Item {
|
||||
return itemstack;
|
||||
}
|
||||
|
||||
public int a(ItemStack itemstack) {
|
||||
public int c_(ItemStack itemstack) {
|
||||
return 72000;
|
||||
}
|
||||
|
||||
public EnumAnimation d_(ItemStack itemstack) {
|
||||
public EnumAnimation b_(ItemStack itemstack) {
|
||||
return EnumAnimation.e;
|
||||
}
|
||||
|
||||
public ItemStack a(ItemStack itemstack, World world, EntityHuman entityhuman) {
|
||||
if (entityhuman.abilities.canInstantlyBuild || entityhuman.inventory.e(Item.ARROW.id)) {
|
||||
entityhuman.a(itemstack, this.a(itemstack));
|
||||
entityhuman.a(itemstack, this.c_(itemstack));
|
||||
}
|
||||
|
||||
return itemstack;
|
||||
|
||||
Reference in New Issue
Block a user