Fishing event will spawn an exp orb even if its experience is 0

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None

      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()));    
                      }

            Assignee:
            Thinkofname
            Reporter:
            Piotr Petrus
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: