Fix fishing ignoring event experience.

This commit is contained in:
feildmaster 2013-12-01 14:46:41 -06:00
parent 46c11eb83f
commit f0af95505b

View File

@ -411,7 +411,7 @@ public class EntityFishingHook extends Entity {
entityitem.motZ = d7 * d9;
this.world.addEntity(entityitem);
// 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;
}