Add source to PlayerExpChangeEvent

This commit is contained in:
AlphaBlend
2016-09-08 08:48:33 -07:00
parent 76de1e898e
commit 087a701e69
2 changed files with 12 additions and 1 deletions

View File

@@ -84,7 +84,7 @@
if (i > 0) {
- player.giveExperiencePoints(i);
+ player.giveExperiencePoints(CraftEventFactory.callPlayerExpChangeEvent(player, i).getAmount()); // CraftBukkit - this.value -> event.getAmount()
+ player.giveExperiencePoints(CraftEventFactory.callPlayerExpChangeEvent(player, this).getAmount()); // CraftBukkit - this.value -> event.getAmount() // Paper - supply experience orb object
}
--this.count;