Skip to content

fix: Various bugs and style considerations#130

Open
AtriusX wants to merge 5 commits into
mainfrom
fix/bug-collections
Open

fix: Various bugs and style considerations#130
AtriusX wants to merge 5 commits into
mainfrom
fix/bug-collections

Conversation

@AtriusX
Copy link
Copy Markdown
Owner

@AtriusX AtriusX commented May 16, 2026

No description provided.

AtriusX added 5 commits May 16, 2026 01:04
- Fix == to = in add() method (line 61) preventing ratios HashMap initialization
- Fix == to = in default() method (line 90) preventing default world assignment
- Simplify redundant null checks in get() method
- Use .use {} block to ensure FileReader is properly closed after JSON parsing
- Prevents file descriptor exhaustion on repeated config loads
- Remove blocking .get() from ListCommand.pageCount() and refactor to async callback pattern
- Remove blocking .get() from InfoEvent.onClick() using runOnMainThread extension
- Change WaystoneService.process() to return CompletableFuture instead of blocking
- Fix LinkEvent async operation using thenAccept instead of thenApplyAsync
- Refactor WarpEvent.onClick() to use runEitherOnMainThread for async handling
- Add AsyncExtensions utility for bridging CompletableFuture to Bukkit main thread
- Add EitherExtensions for convenient Either error handling in async contexts
- Remove duplicate Material.CRAFTING_TABLE entry from WarpValidationService.guiBlocks
- Fix KeyService.validateKey() logic for severed lodestone detection
- Improve null safety in KeyService by restructuring validation flow
- Fix StackSet.remove() to properly handle decrement and removal edge cases
- Pair boss bar and text colors in SimpleTeleportEffect to prevent array bounds mismatch
- Extract magic numbers to named constants (TICKS_PER_SECOND, PARTICLE_MULTIPLIER, etc.)
- Fix Location.locationCode to return 'unknown' instead of null string for null worlds
- Use named parameter ignoreCase=true in MaterialTypeAdapter for clarity
- Replace HashMap with ConcurrentHashMap in LocalizationManager for thread safety
- Add explicit Int return type to AnimationManager.register()
- Replace custom foldResult with Arrow's getOrElse and delete Arrow.kt utility
- Add ItemExtensions for type-safe persistent data container access
- Add .kotlin/ directory to .gitignore
@AtriusX AtriusX force-pushed the fix/bug-collections branch from a403f3b to aa33f36 Compare May 16, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant