aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-08-27 20:31:21 -0500
committerGitHub <noreply@github.com>2022-08-27 20:31:21 -0500
commitb8228a036016fa58cab4b00a2e62298df299d41f (patch)
tree37ab80c054d2c0832d0ebf61cbbefd9e368260a8 /azalea-core/src
parent029ae0e567ccdc631a358755eba43b742811ff05 (diff)
downloadazalea-drasl-b8228a036016fa58cab4b00a2e62298df299d41f.tar.xz
Azalea registry (#20)
* make azalea-registry crate * add trait feature to az-block * registr * registry macro * impl Display for registry things * registries
Diffstat (limited to 'azalea-core/src')
-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 })
}
}