aboutsummaryrefslogtreecommitdiff
path: root/azalea-core
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-core')
-rwxr-xr-xazalea-core/src/game_type.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/azalea-core/src/game_type.rs b/azalea-core/src/game_type.rs
index 875e8f3b..f3f056a4 100755
--- a/azalea-core/src/game_type.rs
+++ b/azalea-core/src/game_type.rs
@@ -110,8 +110,7 @@ impl From<OptionalGameType> for Option<GameType> {
impl McBufReadable for OptionalGameType {
fn read_from(buf: &mut impl Read) -> Result<Self, BufReadError> {
let id = i8::read_from(buf)?;
- GameType::from_optional_id(id)
- .ok_or(BufReadError::UnexpectedEnumVariant { id: id as i32 })
+ GameType::from_optional_id(id).ok_or(BufReadError::UnexpectedEnumVariant { id: id as i32 })
}
}