mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Updated PMF
This commit is contained in:
parent
8bbd899689
commit
f07cd21dd1
@ -68,7 +68,7 @@ class PMF{
|
||||
$this->seek(0);
|
||||
if(fread($this->fp, 3) !== "PMF"){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$this->version = ord($this->read(1));
|
||||
switch($this->version){
|
||||
case 0x01:
|
||||
|
@ -47,7 +47,7 @@ class PMFPlugin extends PMF{
|
||||
if($this->getType() !== 0x01){
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->seek(5);
|
||||
$this->pluginData["fversion"] = ord($this->read(1));
|
||||
$this->pluginData["name"] = $this->read(Utils::readShort($this->read(2), false));
|
||||
$this->pluginData["version"] = $this->read(Utils::readShort($this->read(2), false));
|
||||
|
Loading…
x
Reference in New Issue
Block a user