1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-16 03:24:31 +02:00

Don't allow buying partial item sets via trade signs.

This commit is contained in:
KHobbits
2013-08-28 13:42:08 +01:00
parent 80cb3e9910
commit 3ef723e95f

View File

@@ -296,7 +296,7 @@ public class SignTrade extends EssentialsSign
{
amount -= amount % stackamount;
}
if (notEmpty && (amount < 1 || stackamount < 1 || item.getTypeId() == 0))
if (notEmpty && (amount < 1 || stackamount < 1 || item.getTypeId() == 0 || amount < stackamount))
{
throw new SignException(_("tradeSignEmpty"));
}