mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Update CraftBukkit to Minecraft 1.3.1
This commit is contained in:
committed by
Travis Watkins
parent
08e2923bd4
commit
a43d621c01
@@ -7,15 +7,16 @@ public class ItemFishingRod extends Item {
|
||||
public ItemFishingRod(int i) {
|
||||
super(i);
|
||||
this.setMaxDurability(64);
|
||||
this.e(1);
|
||||
this.d(1);
|
||||
this.a(CreativeModeTab.i);
|
||||
}
|
||||
|
||||
public ItemStack a(ItemStack itemstack, World world, EntityHuman entityhuman) {
|
||||
if (entityhuman.hookedFish != null) {
|
||||
int i = entityhuman.hookedFish.k();
|
||||
int i = entityhuman.hookedFish.d();
|
||||
|
||||
itemstack.damage(i, entityhuman);
|
||||
entityhuman.C_();
|
||||
entityhuman.i();
|
||||
} else {
|
||||
// CraftBukkit start
|
||||
PlayerFishEvent playerFishEvent = new PlayerFishEvent((org.bukkit.entity.Player) entityhuman.getBukkitEntity(), null, PlayerFishEvent.State.FISHING);
|
||||
@@ -26,12 +27,12 @@ public class ItemFishingRod extends Item {
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
world.makeSound(entityhuman, "random.bow", 0.5F, 0.4F / (c.nextFloat() * 0.4F + 0.8F));
|
||||
world.makeSound(entityhuman, "random.bow", 0.5F, 0.4F / (d.nextFloat() * 0.4F + 0.8F));
|
||||
if (!world.isStatic) {
|
||||
world.addEntity(new EntityFishingHook(world, entityhuman));
|
||||
}
|
||||
|
||||
entityhuman.C_();
|
||||
entityhuman.i();
|
||||
}
|
||||
|
||||
return itemstack;
|
||||
|
Reference in New Issue
Block a user