mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Updated PMF
This commit is contained in:
parent
8bbd899689
commit
f07cd21dd1
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue