mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Make resource-pack error messages a little clearer
This commit is contained in:
parent
6af87b7b30
commit
6b773dc04d
@ -76,7 +76,11 @@ class ZippedResourcePack implements ResourcePack{
|
||||
}
|
||||
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user