fix for unbreakable sign
This commit is contained in:
snowleo 2011-07-15 21:58:24 +02:00
parent ad65e66a7c
commit 9c51f6e177

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"));
} }