1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-28 23:29:08 +02:00

Allow fractions of 1

This commit is contained in:
snowleo
2011-07-27 01:04:21 +02:00
parent f1efe2e1d2
commit 9cbd55533d

View File

@@ -102,7 +102,7 @@ public class SignTrade extends EssentialsSign
if (money != null && amount != null)
{
amount -= amount % money;
if (amount < 1 || money < 1)
if (amount < 0.01 || money < 0.01)
{
throw new SignException(Util.i18n("moreThanZero"));
}