mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-26 10:01:49 +01:00
Don't allow buying partial item sets via trade signs.
This commit is contained in:
parent
f96359e31c
commit
3fb4d1f3bf
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user