mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Fix fishing ignoring event experience.
This commit is contained in:
parent
46c11eb83f
commit
f0af95505b
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ public class EntityFishingHook extends Entity {
|
||||||
entityitem.motZ = d7 * d9;
|
entityitem.motZ = d7 * d9;
|
||||||
this.world.addEntity(entityitem);
|
this.world.addEntity(entityitem);
|
||||||
// CraftBukkit - this.random.nextInt(6) + 1 -> playerFishEvent.getExpToDrop()
|
// CraftBukkit - this.random.nextInt(6) + 1 -> playerFishEvent.getExpToDrop()
|
||||||
this.owner.world.addEntity(new EntityExperienceOrb(this.owner.world, this.owner.locX, this.owner.locY + 0.5D, this.owner.locZ + 0.5D, this.random.nextInt(6) + 1));
|
this.owner.world.addEntity(new EntityExperienceOrb(this.owner.world, this.owner.locX, this.owner.locY + 0.5D, this.owner.locZ + 0.5D, playerFishEvent.getExpToDrop()));
|
||||||
b0 = 1;
|
b0 = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue