mirror of
https://github.com/GeyserExtensionists/GeyserModelEngine.git
synced 2025-12-19 15:09:18 +00:00
fixed a small mistake regarding a viewer check
This commit is contained in:
@@ -41,7 +41,7 @@ public class EntityTaskManager {
|
||||
|
||||
public void checkViewers(EntityData model, Set<Player> viewers) {
|
||||
for (Player onlinePlayer : Bukkit.getOnlinePlayers()) {
|
||||
if (!BedrockUtils.isBedrockPlayer(onlinePlayer)) return;
|
||||
if (!BedrockUtils.isBedrockPlayer(onlinePlayer)) continue;
|
||||
|
||||
if (canSee(onlinePlayer, model.getEntity())) {
|
||||
if (!viewers.contains(onlinePlayer)) {
|
||||
|
||||
Reference in New Issue
Block a user