diff options
Diffstat (limited to 'azalea-core/src/resource_location.rs')
| -rwxr-xr-x | azalea-core/src/resource_location.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-core/src/resource_location.rs b/azalea-core/src/resource_location.rs index acca0c58..945b6d80 100755 --- a/azalea-core/src/resource_location.rs +++ b/azalea-core/src/resource_location.rs @@ -46,8 +46,8 @@ impl std::fmt::Debug for ResourceLocation { } impl McBufReadable for ResourceLocation { - fn read_into(buf: &mut impl Read) -> Result<Self, String> { - let location_string = String::read_into(buf)?; + fn read_from(buf: &mut impl Read) -> Result<Self, String> { + let location_string = String::read_from(buf)?; ResourceLocation::new(&location_string) } } @@ -99,7 +99,7 @@ mod tests { let mut buf = Cursor::new(buf); assert_eq!( - ResourceLocation::read_into(&mut buf).unwrap(), + ResourceLocation::read_from(&mut buf).unwrap(), ResourceLocation::new("minecraft:dirt").unwrap() ); } |
