ResourcePackManifest: Stop throwing exceptions on extra properties (#4804)

This code currently throws errors when properties other than the base required ones are added. This can be from resource packs created by "bridge.", where the IDE adds a "generated_with" property to the manifest. This leads to resource packs created by bridge., which are otherwise completely valid, not being loaded.
This commit is contained in:
Shaheryar Sohail 2022-02-06 18:22:22 -05:00 committed by GitHub
parent dd1ebb5915
commit 38e34093cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,6 @@ class ZippedResourcePack implements ResourcePack{
}
$mapper = new \JsonMapper();
$mapper->bExceptionOnUndefinedProperty = true;
$mapper->bExceptionOnMissingData = true;
try{