[SPIGOT-782] Fishing event will spawn an exp orb even if its experience is 0 Created: 08/Apr/15  Updated: 13/Apr/15  Resolved: 13/Apr/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Piotr Petrus Assignee: Thinkofname
Resolution: Fixed Votes: 2
Labels: None


 Description   
this.owner.world.addEntity(new EntityExperienceOrb(this.owner.world, this.owner.locX, this.owner.locY + 0.5D, this.owner.locZ + 0.5D, playerFishEvent.getExpToDrop()));`

This means that when a plugin overwrites experience to be 0 for fishing, player will still hear the sound as though they got any experience.

Suggested solution:

if(playerFishEvent.getExpToDrop() != 0) {
                    this.owner.world.addEntity(new EntityExperienceOrb(this.owner.world, this.owner.locX, this.owner.locY + 0.5D, this.owner.locZ + 0.5D, playerFishEvent.getExpToDrop()));    
                }


 Comments   
Comment by SpigotMC [ 08/Apr/15 ]

Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 1 version(s) behind. CraftBukkit is 2 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

Generated at Sat Dec 13 20:46:07 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.