no message
This commit is contained in:
parent
dd580178c2
commit
9fd47e9e82
|
|
@ -92,7 +92,9 @@ public class MapleShop {
|
|||
}
|
||||
final MapleShopItem item = this.findById(itemId);
|
||||
if (item != null && item.getPrice() > 0 && item.getReqItem() == 0) {
|
||||
long i = (long) item.getPrice() * quantity;
|
||||
final int price = GameConstants.isRechargable(itemId) ? item.getPrice() : (item.getPrice() * quantity);
|
||||
if (i>=Integer.MAX_VALUE &&!GameConstants.isRechargable(itemId))return;
|
||||
if (price >= 0 && c.getPlayer().getMeso() >= price) {
|
||||
if (MapleInventoryManipulator.checkSpace(c, itemId, (int) quantity, "")) {
|
||||
c.getPlayer().gainMeso(-price, false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue