mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-02 04:27:34 +00:00
Allow fractions of 1
This commit is contained in:
parent
0ac26265e2
commit
beb34a7651
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ public class SignTrade extends EssentialsSign
|
||||||
if (money != null && amount != null)
|
if (money != null && amount != null)
|
||||||
{
|
{
|
||||||
amount -= amount % money;
|
amount -= amount % money;
|
||||||
if (amount < 1 || money < 1)
|
if (amount < 0.01 || money < 0.01)
|
||||||
{
|
{
|
||||||
throw new SignException(Util.i18n("moreThanZero"));
|
throw new SignException(Util.i18n("moreThanZero"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue