Do not accept invalid client settings
This commit is contained in:
parent
7483a45e55
commit
4aa035fa95
2 changed files with 25 additions and 1 deletions
|
@ -1066,7 +1066,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ }
|
||||
+
|
||||
+ protected int getClientViewDistance() {
|
||||
+ return this.player.clientViewDistance == null ? -1 : this.player.clientViewDistance.intValue();
|
||||
+ return this.player.clientViewDistance == null ? -1 : Math.max(0, this.player.clientViewDistance.intValue());
|
||||
+ }
|
||||
+
|
||||
+ public void update() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue