From beb34a7651d24d973b9ae1c99294cd10cf5bd94a Mon Sep 17 00:00:00 2001 From: snowleo Date: Wed, 27 Jul 2011 01:04:21 +0200 Subject: [PATCH] Allow fractions of 1 --- Essentials/src/com/earth2me/essentials/signs/SignTrade.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/signs/SignTrade.java b/Essentials/src/com/earth2me/essentials/signs/SignTrade.java index d9b5f7cc2..37f56d9fb 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignTrade.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignTrade.java @@ -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")); }