Change default view distance to 16 and add /viewdistance command

This commit is contained in:
2026-10-02 19:01:08 -03:00
parent a4fec0681f
commit 3202c18ab5
7 changed files with 56 additions and 12 deletions
+2
View File
@@ -94,6 +94,8 @@ export class ServerPlayer extends LivingEntity {
sent = new Map<string, string>();
// the chunks their client has and still needs
chunks: PlayerChunks;
// the view distance their client asked for, which the server's might cap, undefined when it didn't say
requested_view_distance: number | undefined;
constructor(
level: EntityLevel,