1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 12:01:20 +02:00
fix for unbreakable sign
This commit is contained in:
snowleo
2011-07-15 21:58:24 +02:00
parent 05a0059b22
commit 5d479e8fe1

View File

@@ -334,7 +334,7 @@ public class EssentialsSign
protected final Double getDoublePositive(final String line) throws SignException protected final Double getDoublePositive(final String line) throws SignException
{ {
final double quantity = getDouble(line); final double quantity = getDouble(line);
if (quantity <= 0.0) if (Math.round(quantity*100.0) < 1.0)
{ {
throw new SignException(Util.i18n("moreThanZero")); throw new SignException(Util.i18n("moreThanZero"));
} }