Fix goods limit bug

This commit is contained in:
xtaodada 2022-05-02 04:28:38 +08:00 committed by Melledy
parent 6d96906484
commit 22a651b4aa

View File

@ -54,7 +54,7 @@ public class HandlerBuyGoodsReq extends PacketHandler {
session.getPlayer().save();
}
if (bought + buyGoodsReq.getBoughtNum() > sg.getBuyLimit()) {
if ((bought + buyGoodsReq.getBoughtNum() > sg.getBuyLimit()) && sg.getBuyLimit() != 0) {
return;
}