This commit is contained in:
Dylan K. Taylor 2016-10-12 13:16:50 +01:00
parent 7cd7a7fbf6
commit ec328a8160
2 changed files with 7 additions and 7 deletions

View File

@ -43,13 +43,13 @@ class ResourcePacksInfoPacket extends DataPacket{
$this->putByte($this->mustAccept); $this->putByte($this->mustAccept);
$this->putShort(count($this->behaviourPackEntries)); $this->putShort(count($this->behaviourPackEntries));
foreach($this->behaviourPackEntries as $entry){ foreach($this->behaviourPackEntries as $entry){
$this->putString($entry->getName()); $this->putString($entry->getPackId());
$this->putString($entry->getVersion()); $this->putString($entry->getVersion());
$this->putLong($entry->getUint64()); $this->putLong($entry->getUint64());
} }
$this->putShort(count($this->resourcePackEntries)); $this->putShort(count($this->resourcePackEntries));
foreach($this->resourcePackEntries as $entry){ foreach($this->resourcePackEntries as $entry){
$this->putString($entry->getName()); $this->putString($entry->getPackId());
$this->putString($entry->getVersion()); $this->putString($entry->getVersion());
$this->putLong($entry->getUint64()); $this->putLong($entry->getUint64());
} }

View File

@ -22,18 +22,18 @@
namespace pocketmine\resourcepacks; namespace pocketmine\resourcepacks;
class ResourcePackInfoEntry{ class ResourcePackInfoEntry{
protected $name; protected $packId; //UUID
protected $version; protected $version;
protected $uint64; // unknown protected $uint64; // unknown
public function __construct(string $name, string $version, $uint64){ public function __construct(string $packId, string $version, $uint64){
$this->name = $name; $this->packId = $packId;
$this->version = $version; $this->version = $version;
$this->uint64 = $uint64; $this->uint64 = $uint64;
} }
public function getName() : string{ public function getPackId() : string{
return $this->name; return $this->packId;
} }
public function getVersion() : string{ public function getVersion() : string{