summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-15 21:58:24 +0200
committersnowleo <schneeleo@gmail.com>2011-07-15 21:58:24 +0200
commit9c51f6e1772b086e10cd63cccbba08fe0a95d242 (patch)
tree4a54a77ba0e2ee424ef46f3246daf8aca8d56678
parentad65e66a7c23f678852c616b38330200c638aebb (diff)
downloadEssentials-9c51f6e1772b086e10cd63cccbba08fe0a95d242.tar
Essentials-9c51f6e1772b086e10cd63cccbba08fe0a95d242.tar.gz
Essentials-9c51f6e1772b086e10cd63cccbba08fe0a95d242.tar.lz
Essentials-9c51f6e1772b086e10cd63cccbba08fe0a95d242.tar.xz
Essentials-9c51f6e1772b086e10cd63cccbba08fe0a95d242.zip
Test #683
fix for unbreakable sign
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java
index f0da20251..42f6cc1de 100644
--- a/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java
+++ b/Essentials/src/com/earth2me/essentials/signs/EssentialsSign.java
@@ -334,7 +334,7 @@ public class EssentialsSign
protected final Double getDoublePositive(final String line) throws SignException
{
final double quantity = getDouble(line);
- if (quantity <= 0.0)
+ if (Math.round(quantity*100.0) < 1.0)
{
throw new SignException(Util.i18n("moreThanZero"));
}