Skip to content

Commit

Permalink
Fix issue with MagicHeart placeholder in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgH93 committed Dec 7, 2021
1 parent f6f621c commit 787e36a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 GeorgH93
* Copyright (C) 2021 GeorgH93
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -35,7 +35,7 @@ public MagicHeart(MarriageMaster plugin)
@Override
protected @Nullable String replaceMarried(MarriagePlayer player)
{
//noinspection ConstantConditions
return player.getMarriageData().getColor() + valueMarried;
//noinspection ConstantConditions,RedundantCast
return ((MarriageData) player.getMarriageData()).getColor() + valueMarried;
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<packaging>pom</packaging>

<properties>
<revision>2.5.2</revision>
<revision>2.5.2.1</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<bukkitVersion>1.15.2-R0.1-SNAPSHOT</bukkitVersion>
Expand Down

2 comments on commit 787e36a

@Qveshn
Copy link
Contributor

@Qveshn Qveshn commented on 787e36a Dec 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops... 😳

@GeorgH93
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops... flushed

Don't worry, I didn't even think about that annoying thing myself. I probably should change how the standalone mode works or at last interacts with the API.

Please sign in to comment.