mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-24 01:21:30 +00:00
Fix goods limit bug
This commit is contained in:
parent
6d96906484
commit
22a651b4aa
@ -54,7 +54,7 @@ public class HandlerBuyGoodsReq extends PacketHandler {
|
|||||||
session.getPlayer().save();
|
session.getPlayer().save();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bought + buyGoodsReq.getBoughtNum() > sg.getBuyLimit()) {
|
if ((bought + buyGoodsReq.getBoughtNum() > sg.getBuyLimit()) && sg.getBuyLimit() != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user