diff --git a/src/pocketmine/network/protocol/ResourcePacksInfoPacket.php b/src/pocketmine/network/protocol/ResourcePacksInfoPacket.php index b39e53ebc..6f969565a 100644 --- a/src/pocketmine/network/protocol/ResourcePacksInfoPacket.php +++ b/src/pocketmine/network/protocol/ResourcePacksInfoPacket.php @@ -43,13 +43,13 @@ class ResourcePacksInfoPacket extends DataPacket{ $this->putByte($this->mustAccept); $this->putShort(count($this->behaviourPackEntries)); foreach($this->behaviourPackEntries as $entry){ - $this->putString($entry->getName()); + $this->putString($entry->getPackId()); $this->putString($entry->getVersion()); $this->putLong($entry->getUint64()); } $this->putShort(count($this->resourcePackEntries)); foreach($this->resourcePackEntries as $entry){ - $this->putString($entry->getName()); + $this->putString($entry->getPackId()); $this->putString($entry->getVersion()); $this->putLong($entry->getUint64()); } diff --git a/src/pocketmine/resourcepacks/ResourcePackInfoEntry.php b/src/pocketmine/resourcepacks/ResourcePackInfoEntry.php index f504f4a05..2613ee5da 100644 --- a/src/pocketmine/resourcepacks/ResourcePackInfoEntry.php +++ b/src/pocketmine/resourcepacks/ResourcePackInfoEntry.php @@ -22,18 +22,18 @@ namespace pocketmine\resourcepacks; class ResourcePackInfoEntry{ - protected $name; + protected $packId; //UUID protected $version; protected $uint64; // unknown - public function __construct(string $name, string $version, $uint64){ - $this->name = $name; + public function __construct(string $packId, string $version, $uint64){ + $this->packId = $packId; $this->version = $version; $this->uint64 = $uint64; } - public function getName() : string{ - return $this->name; + public function getPackId() : string{ + return $this->packId; } public function getVersion() : string{