BetterShopAuction-7.0.5.jar
What's new
Fixed that issue:
Hi! Small bug report for BetterShopAuction 7.0.0 on server 0.7.4. When a player confirms a purchase, the UI sends @BidLong with a decimal ("1000.0") and the server-side codec expects a long, so the whole page event fails and the purchase never goes through:
CodecException: Failed to decode '@BidLong'
"@BidLong":1000.0,"Action":"buy_confirm_yes","ShiftHeld":false
at InteractiveCustomUIPage.handleDataEvent(InteractiveCustomUIPage.java:90)
Caused by: NumberFormatException: Error at index 4 in: "1000.0"
at LongCodec.decodeJson(LongCodec.java:36)
Hit twice in a row by the same player (ModernAuctionPage$ModernAuctionEvent). I’d guess either the text field lets a decimal through, or the client sends the value as a float. Either parsing it as a double and rounding, or validating the field before sending, would fix it.
This mod has no additional files

