Fix goods limit bug

This commit is contained in:
xtaodada 2022-05-02 04:28:38 +08:00 committed by Melledy
parent bd560785ba
commit eb703f9f72

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;
}