Skip to content

Commit

Permalink
removed error message caused by papi placeholders without initial val…
Browse files Browse the repository at this point in the history
…ue on bungeecord
  • Loading branch information
NEZNAMY committed Mar 24, 2021
1 parent 7d9c65c commit aee7de2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/me/neznamy/tab/shared/ErrorManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ public float parseFloat(String string, float defaultValue, String place) {
* @return parsed double
*/
public double parseDouble(String string, double defaultValue, String place) {
if (string == null || string.length() == 0) return 0; //preventing error message on bungee with papi placeholders due to them not being initialized yet
try {
return Double.parseDouble(string);
} catch (Throwable e) {
Expand Down

0 comments on commit aee7de2

Please sign in to comment.