>(greater than) or =(equal to)
|
I've added this a while ago and since I don't like the other way the kid did it I posted mine.
Open up Grandexchange.java Replace your code with mine.
Code:long totalPrice = price * amount; if (totalPrice >= Integer.MAX_VALUE || totalPrice < 0) { player.sm("The price is too high!"); return; }
I posted a permanent fix on his thread. Also why block the price if its exactly on the maximum integer?
This doesn't fix the dupe though, when you quickly spam the buy button .
nice lol how long did this take to create?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |