Skip to content

Conversation

@goul4rt
Copy link

@goul4rt goul4rt commented Nov 4, 2025

This PR addresses a concurrency issue where entity visibility methods (showEntity, hideEntity, etc.) were being called from non-primary threads, potentially causing thread-safety violations or runtime exceptions on Bukkit-based servers.

The changes enforce that all visibility updates are executed on the main thread, using Bukkit.isPrimaryThread() checks and Bukkit.getScheduler().runTask(...) scheduling when necessary.

Exampel of logs erros fixes: https://mclo.gs/rrAXuPM

…y, PlayerDisguiseEntity, and SkeletonWatchers to ensure they run on the main thread, preventing potential concurrency issues.
@goul4rt goul4rt changed the title fix: updated entity visibility methods in DynamicEntity, ModeledEntit… Ensure entity visibility operations run safely on main thread Nov 4, 2025
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