From 556da34dbeb3bafe952b954c1e6b225c021ba142 Mon Sep 17 00:00:00 2001 From: Superomarking Date: Thu, 5 Dec 2024 17:49:52 +0300 Subject: [PATCH] Fixed packet --- .../network/packets/ResourcePacksInfoPacket.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Supero/NightfallProtocol/network/packets/ResourcePacksInfoPacket.php b/src/Supero/NightfallProtocol/network/packets/ResourcePacksInfoPacket.php index ff0cfc8..791d786 100644 --- a/src/Supero/NightfallProtocol/network/packets/ResourcePacksInfoPacket.php +++ b/src/Supero/NightfallProtocol/network/packets/ResourcePacksInfoPacket.php @@ -76,8 +76,8 @@ protected function decodePayload(PacketSerializer $in) : void{ } } if ($in->getProtocol() >= CustomProtocolInfo::PROTOCOL_1_21_50) { - $in->putUUID($this->worldTemplateId); - $in->putString($this->worldTemplateVersion); + $this->worldTemplateId = $in->getUUID(); + $this->worldTemplateVersion = $in->getString(); } $resourcePackCount = $in->getLShort(); @@ -109,8 +109,8 @@ protected function encodePayload(PacketSerializer $out) : void{ } } if ($out->getProtocol() >= CustomProtocolInfo::PROTOCOL_1_21_50) { - $this->worldTemplateId = $out->getUUID(); - $this->worldTemplateVersion = $out->getString(); + $out->putUUID($this->worldTemplateId); + $out->putString($this->worldTemplateVersion); } $out->putLShort(count($this->resourcePackEntries)); foreach($this->resourcePackEntries as $entry){