Toggle & Magnet Permission Enforcement: Added proper permission checks for lootglow.toggle and lootglow.magnet to prevent unauthorized players from using commands.
Instant Glow Sync: Standard ground items now instantly update their glowing status on the client when toggling visuals.
LOD Distance Respect: Toggling visuals ON now strictly respects configured LOD distances instead of rendering everything in the world at once, avoiding client lag.
Tab-Completion Filter: Autocomplete recommendations (/lg reload/toggle/magnet) are now dynamically filtered based on the player's active permissions.
Thread Safety & Performance
Netty Concurrency Fixes: Swapped unsafe collections (HashSet, HashMap) used by packet listeners on async Netty threads with thread-safe alternatives (ConcurrentHashMap and key sets). This prevents potential ConcurrentModificationException and severe CPU lock loops.
NamespacedKey Allocation Cache: Cached all NamespacedKey instances (Oraxen, ItemsAdder, MMOItems, Nexo, MythicMobs, MythicDrops, etc.) used inside the highly frequent getInternalId method. This saves thousands of object allocations per second under heavy drop rates, reducing GC overhead.
Dynamic Crop Scan Radius: Bounded the farming scan radius dynamically to the configured farming.view-distance (up to 16 blocks). This saves up to 72% block lookups per player for lower view distances, drastically reducing CPU overhead.
Bug Fixes & QoL
Invisible RPG Drops Fix: Fixed a critical issue where players with visuals toggled OFF could not see or pick up vanilla RPG drops after joining or changing worlds due to setVisibleByDefault(false) persistence.
Crop Visual Toggle & Spawn Fix: Fixed an issue where new crop visuals reappeared or existing crop visuals did not disappear for players with visuals disabled, by ensuring crop displays are properly hidden by default (setVisibleByDefault(false)) and correctly tracked in player visibility sets upon spawning and chunk loading.
Smart Item Magnet: The item magnet task now checks if the player's inventory has available space before pulling items. This prevents items from crowding and floating around players with full inventories.
Loot Container Index Fix: Fixed a potential IndexOutOfBoundsException in the loot container listener when players clicked outside the interface (causing negative slot indices).
Config Reload Leak Fix: Fixed a memory leak where active items, world maps, entity ID maps, hidden vanilla items, crop symbols, and player visibility tracking sets (visibleEntities) were not properly cleared or removed on configuration reload (/lg reload). This also ensures crop symbol configuration changes (material, color, scale, offset) apply instantly upon reload.
World Change Cleanups: Improved visual tracking and cleanup tasks when teleporting across worlds to prevent lingering visual artifacts.