Pixelmon Mod - Bug tracker

[5.1.2] Experience gain message does not reflect mutation via event fix completed for upcoming version

Ticket description:
When the value of an `ExperienceGainEvent` is mutated, the new value is not reflected in the message sent to the player. This problem is caused by the following line in `Level#awardExp`:

Code: Select allTextComponentTranslation isReplacingMove = ChatHandler.getMessage("pixelmon.stats.gainexp", this.pixelmon.getRealNickname(), i);


This can be resolved by simply replacing `i` with `expGainEvent.getExperience()`.

Comments

No comments have been made

Ticket details

  • Ticket ID: 12453
  • Project: Pixelmon Mod
  • Status: Fix completed for upcoming version
  • Component: Other
  • Project version: 5.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: (unknown)
  • What else would be useful to know?: (unknown)
  • Assigned to: Some Body
  • Reported by: caseif (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 05 Jul 2017 11:31
  • Ticket last visited by: Some Body on 09 Jul 2017 14:55
JOIN THE TEAM