protocol: fix wildcard_in_or_patterns

This commit is contained in:
ice_iix 2020-06-28 18:36:16 -07:00
parent 2f1c7b3c60
commit 72f0595111
2 changed files with 4 additions and 2 deletions

View File

@ -245,7 +245,8 @@ impl Color {
};
Color::RGB(r, g, b)
}
"white" | _ => Color::White,
"white" => Color::White,
_ => Color::White,
}
}

View File

@ -33,7 +33,8 @@ impl Gamemode {
3 => Gamemode::Spectator,
2 => Gamemode::Adventure,
1 => Gamemode::Creative,
0 | _ => Gamemode::Survival,
0 => Gamemode::Survival,
_ => Gamemode::Survival,
}
}