mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Make resource-pack error messages a little clearer
This commit is contained in:
@ -76,7 +76,11 @@ class ZippedResourcePack implements ResourcePack{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(($manifestData = $archive->getFromName("manifest.json")) === false){
|
if(($manifestData = $archive->getFromName("manifest.json")) === false){
|
||||||
throw new \InvalidStateException("Could not load resource pack from $zipPath: manifest.json not found");
|
if($archive->locateName("pack_manifest.json") !== false){
|
||||||
|
throw new \InvalidStateException("Could not load resource pack from $zipPath: unsupported old pack format");
|
||||||
|
}else{
|
||||||
|
throw new \InvalidStateException("Could not load resource pack from $zipPath: manifest.json not found in the archive root");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$archive->close();
|
$archive->close();
|
||||||
|
Reference in New Issue
Block a user