Player Quit Cleanup: Added comprehensive player session memory cleanup during PlayerQuitEvent, removing disconnected players from hiddenVisuals and disabledMagnets caches immediately.
RAM Leak Resolved: Prevented lingering UUID entries from slowly accumulating over days/weeks on high-traffic servers with hundreds of unique player logins.
Eliminated Redundant Player Loops (O(N*M) Loop Fix): Highly optimized the core 1-tick rendering task (startGlobalSyncTask) to maximize server-side tick efficiency:
Redundant visibility loops removed: Discarded redundant nested Bukkit.getOnlinePlayers() loops that executed distance checking and packet updates for every shadow at every single tick.
100% Delegated to LOD task: Visual packet updates are now exclusively managed by the highly optimized, configurable-interval startLODTask, completely freeing the 20 Hz tick loop from packet transmission pressure.
DistanceSquared calculations: Replaced the expensive distance() calculations with lightning-fast distanceSquared() lookups.
Heavy Math.sqrt() completely bypassed: Eliminated the heavy square root processor burden per flying item display, ensuring buttery-smooth magnet dynamics during heavy community drop parties.