mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Update for Minecraft 1.8
This commit is contained in:
@@ -12,10 +12,10 @@ public class ItemFishingRod extends Item {
|
||||
|
||||
public ItemStack a(ItemStack itemstack, World world, EntityHuman entityhuman) {
|
||||
if (entityhuman.hookedFish != null) {
|
||||
int i = entityhuman.hookedFish.h();
|
||||
int i = entityhuman.hookedFish.i();
|
||||
|
||||
itemstack.damage(i, entityhuman);
|
||||
entityhuman.w();
|
||||
entityhuman.v();
|
||||
} else {
|
||||
// CraftBukkit start
|
||||
PlayerFishEvent playerFishEvent = new PlayerFishEvent((org.bukkit.entity.Player) entityhuman.getBukkitEntity(), null,PlayerFishEvent.State.FISHING);
|
||||
@@ -30,7 +30,7 @@ public class ItemFishingRod extends Item {
|
||||
world.addEntity(new EntityFish(world, entityhuman));
|
||||
}
|
||||
|
||||
entityhuman.w();
|
||||
entityhuman.v();
|
||||
}
|
||||
|
||||
return itemstack;
|
||||
|
Reference in New Issue
Block a user