Fix GlobalPos

This commit is contained in:
mat 2022-06-16 21:01:38 -05:00
parent 70cc7dfbed
commit 56f98c1b24
2 changed files with 2 additions and 2 deletions

View file

@ -485,8 +485,8 @@ impl McBufReadable for BlockPos {
impl McBufReadable for GlobalPos {
fn read_into(buf: &mut impl Read) -> Result<Self, String> {
Ok(GlobalPos {
pos: BlockPos::read_into(buf)?,
dimension: ResourceLocation::read_into(buf)?,
pos: BlockPos::read_into(buf)?,
})
}
}

View file

@ -398,8 +398,8 @@ impl McBufWritable for BlockPos {
impl McBufWritable for GlobalPos {
fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> {
BlockPos::write_into(&self.pos, buf)?;
ResourceLocation::write_into(&self.dimension, buf)?;
BlockPos::write_into(&self.pos, buf)?;
Ok(())
}