mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-31 15:31:07 +00:00
Updated PMF
This commit is contained in:
parent
8bbd899689
commit
f07cd21dd1
@ -68,7 +68,7 @@ class PMF{
|
|||||||
$this->seek(0);
|
$this->seek(0);
|
||||||
if(fread($this->fp, 3) !== "PMF"){
|
if(fread($this->fp, 3) !== "PMF"){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$this->version = ord($this->read(1));
|
$this->version = ord($this->read(1));
|
||||||
switch($this->version){
|
switch($this->version){
|
||||||
case 0x01:
|
case 0x01:
|
||||||
|
@ -47,7 +47,7 @@ class PMFPlugin extends PMF{
|
|||||||
if($this->getType() !== 0x01){
|
if($this->getType() !== 0x01){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$this->seek(5);
|
||||||
$this->pluginData["fversion"] = ord($this->read(1));
|
$this->pluginData["fversion"] = ord($this->read(1));
|
||||||
$this->pluginData["name"] = $this->read(Utils::readShort($this->read(2), false));
|
$this->pluginData["name"] = $this->read(Utils::readShort($this->read(2), false));
|
||||||
$this->pluginData["version"] = $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