From b0859b250a8fb7196ce024140c13f1fa4510a10a Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 3 Aug 2015 21:18:35 +1000 Subject: [PATCH] Fixes #497 --- pom.xml | 2 +- .../java/com/plotsquared/bukkit/util/BukkitEconHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 34d18a309..4970666ae 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ UTF-8 PlotSquared - 3.0.6 + 3.0.7 PlotSquared jar diff --git a/src/main/java/com/plotsquared/bukkit/util/BukkitEconHandler.java b/src/main/java/com/plotsquared/bukkit/util/BukkitEconHandler.java index 1fee50cb7..95ac37774 100644 --- a/src/main/java/com/plotsquared/bukkit/util/BukkitEconHandler.java +++ b/src/main/java/com/plotsquared/bukkit/util/BukkitEconHandler.java @@ -48,7 +48,7 @@ public class BukkitEconHandler extends EconHandler { @Override public double getMoney(PlotPlayer player) { double bal = super.getMoney(player); - if (bal == Double.NaN) { + if (Double.isNaN(bal)) { return econ.getBalance(player.getName()); } return bal;