From 7b4ef293bdc89188566e754b973d966bb0df3657 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 21 Nov 2021 20:49:00 +0000 Subject: [PATCH] NetworkBinaryStream: fixed incorrect field types for StructureSettings --- src/pocketmine/network/mcpe/NetworkBinaryStream.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pocketmine/network/mcpe/NetworkBinaryStream.php b/src/pocketmine/network/mcpe/NetworkBinaryStream.php index 9fa3506c1..bbe80e72e 100644 --- a/src/pocketmine/network/mcpe/NetworkBinaryStream.php +++ b/src/pocketmine/network/mcpe/NetworkBinaryStream.php @@ -786,8 +786,8 @@ class NetworkBinaryStream extends BinaryStream{ $result->lastTouchedByPlayerID = $this->getEntityUniqueId(); $result->rotation = $this->getByte(); $result->mirror = $this->getByte(); - $result->integrityValue = $this->getFloat(); - $result->integritySeed = $this->getInt(); + $result->integrityValue = $this->getLFloat(); + $result->integritySeed = $this->getLInt(); $result->pivot = $this->getVector3(); return $result; @@ -805,8 +805,8 @@ class NetworkBinaryStream extends BinaryStream{ $this->putEntityUniqueId($structureSettings->lastTouchedByPlayerID); $this->putByte($structureSettings->rotation); $this->putByte($structureSettings->mirror); - $this->putFloat($structureSettings->integrityValue); - $this->putInt($structureSettings->integritySeed); + $this->putLFloat($structureSettings->integrityValue); + $this->putLInt($structureSettings->integritySeed); $this->putVector3($structureSettings->pivot); }