## v2.5.2 - Critical Security & Stability Update
### **🛡️ CRITICAL SECURITY FIX**
**Patched Double Purchase Item Duplication Exploit**
Fixed a critical vulnerability where multiple players could purchase the same auction item simultaneously, allowing item duplication and economic exploitation.
### **What Was Fixed:**
- **Multi-purchase exploit**: Players could spam-click to buy the same auction item
- **Seller overpayment**: Sellers received multiple payments for a single item
- **Item duplication**: Buyers could duplicate items through concurrent purchases
- **Economic instability**: Server economy could be unfairly manipulated
### **Technical Changes:**
- Implemented **Atomic Reservation Pattern** - items are reserved before currency transfer
- Added **Optimistic Locking** - prevents concurrent purchases with version checking
- Enhanced **Automatic Rollback** - auctions revert to ACTIVE status if transactions fail
- Improved **Thread-Safe Operations** - inventory operations moved to main thread
- Added **Clear Error Feedback** - users receive explicit messages for failed purchases
**Update Recommendation**: ⚠️ **IMMEDIATE UPDATE REQUIRED** - This fix addresses a severe game-breaking exploit.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }