Skip to content

Commit

Permalink
fix: online render tag bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Josscoder committed Jan 3, 2024
1 parent 6b4b743 commit fa5867e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity/spawnable/SpawnAble.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function updateMetadata(array $metadata): void
public function getViewerList(): array
{
return array_filter($this->viewerList, function ($value) {
return !is_null($value);
return !is_null($value) && $value->isOnline();
});
}

Expand Down

0 comments on commit fa5867e

Please sign in to comment.