true-invis-1.1.0.jar
Curse Maven Snippet
What's new
- Refactor True_invis to use UUIDs for tracking players instead of ServerPlayerEntity objects, preventing memory leaks.
- Introduce trueSightMap to track which players can see invisible players dynamically.
- Optimize server tick handling:
- Run main invisibility/equipment logic every 10 ticks instead of every tick.
- Resend glowing outlines to True Sight players every 200 ticks to prevent desync.
- Enhance equipment storage:
- Store copies of ItemStacks to prevent accidental mutations.
- Check for equipment changes before sending update packets to reduce network load.
- Expand invisibility detection to include both potion effects and invisible flags for broader compatibility.
- Add disconnect event handler to clean up player data on logout.
- Replace System.out logging with Log4j logger for better debugging and server logging practices.
- Ensure dynamic True Sight changes are reflected immediately for observers.
- Update enchantment registry identifier from "noparticles" → "true_invis" for clarity.
Overall, this refactor improves performance, reliability, and maintainability of the True_invis mod.
This mod has no additional files

