We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407250b commit 2d7db5fCopy full SHA for 2d7db5f
bukkit/src/main/kotlin/io/github/rothes/esu/bukkit/module/networkthrottle/entityculling/UserCullData.kt
@@ -85,10 +85,11 @@ class UserCullData(
85
synchronized(hiddenEntities) {
86
val raytraceHandler = raytraceHandler
87
val iterator = hiddenEntities.int2ReferenceEntrySet().iterator()
88
+ val playerLoc = player.location
89
for (entry in iterator) {
90
val entity = entry.value
91
var flag = !raytraceHandler.isValid(entity)
- if (entity.world != player.world) {
92
+ if (entity.world != player.world || entity.location.distanceSquared(playerLoc) > 1024 * 1024) {
93
playerEntityVisibilityHandler.forceShowEntity(player, entity)
94
flag = true
95
}
0 commit comments