Fixed view distance bug

This commit is contained in:
Joshua Barretto 2020-07-06 16:36:13 +01:00
parent e19d170b61
commit bdab3972c2

View File

@ -136,7 +136,7 @@ impl Sys {
if settings
.max_view_distance
.zip(view_distance)
.map(|(vd, max)| vd > max)
.map(|(max, vd)| vd > max)
.unwrap_or(false)
{
client.notify(ServerMsg::SetViewDistance(