Skip to content

Commit

Permalink
Fix error with mcMMO #129
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgH93 committed Apr 6, 2020
1 parent 2931a13 commit 778594c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public void setEventExp(McMMOPlayerXpGainEvent event, double xp, XP_TYPE xpType,
@Override
public void splitWithPartner(McMMOPlayerXpGainEvent event, Player partner, double xp, XP_TYPE type, MarriagePlayer player, Marriage marriage)
{
addXp(UserManager.getPlayer(partner), (float) xp, type);
McMMOPlayer mcMMOPartner = UserManager.getPlayer(partner);
if(mcMMOPartner == null) return;
addXp(mcMMOPartner, (float) xp, type);
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</licenses>

<properties>
<revision>2.1.5-RC3</revision>
<revision>2.1.5-RC4</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
Expand Down

0 comments on commit 778594c

Please sign in to comment.