df-mc / dragonfly

Minecraft Bedrock Edition server software written in Go
https://discord.gg/U4kFWHhTNR
MIT License
673 stars 150 forks source link

Avoid Showing/hiding entities unconditionally #894

Closed UnknownOre closed 1 month ago

UnknownOre commented 2 months ago

There's no way to tell if a player can see an entity or not, so if you call player.ShowEnitty() and the player can already see the entity it will cause some issues & race conditions