mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-06 04:58:00 +02:00
parent
ad65e66a7c
commit
9c51f6e177
@ -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"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user