mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-20 07:02:31 +00:00
Fix GlobalPos
This commit is contained in:
parent
70cc7dfbed
commit
56f98c1b24
2 changed files with 2 additions and 2 deletions
|
@ -485,8 +485,8 @@ impl McBufReadable for BlockPos {
|
||||||
impl McBufReadable for GlobalPos {
|
impl McBufReadable for GlobalPos {
|
||||||
fn read_into(buf: &mut impl Read) -> Result<Self, String> {
|
fn read_into(buf: &mut impl Read) -> Result<Self, String> {
|
||||||
Ok(GlobalPos {
|
Ok(GlobalPos {
|
||||||
pos: BlockPos::read_into(buf)?,
|
|
||||||
dimension: ResourceLocation::read_into(buf)?,
|
dimension: ResourceLocation::read_into(buf)?,
|
||||||
|
pos: BlockPos::read_into(buf)?,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -398,8 +398,8 @@ impl McBufWritable for BlockPos {
|
||||||
|
|
||||||
impl McBufWritable for GlobalPos {
|
impl McBufWritable for GlobalPos {
|
||||||
fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> {
|
fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> {
|
||||||
BlockPos::write_into(&self.pos, buf)?;
|
|
||||||
ResourceLocation::write_into(&self.dimension, buf)?;
|
ResourceLocation::write_into(&self.dimension, buf)?;
|
||||||
|
BlockPos::write_into(&self.pos, buf)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue