Return client resources even if no data pack found on server. Closes #6225 (Pull request)

Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw 2020-11-01 16:18:30 -05:00
parent 36f9c804d9
commit 7e79243bca
No known key found for this signature in database
GPG Key ID: 8EB3DF749553B1B7
1 changed files with 8 additions and 1 deletions

View File

@ -117,7 +117,14 @@ public class ModFileResourcePack extends ResourcePack
}
catch (IOException e)
{
return Collections.emptySet();
if (type == ResourcePackType.SERVER_DATA) //We still have to add the resource namespace if client resources exist, as we load langs (which are in assets) on server
{
return this.getResourceNamespaces(ResourcePackType.CLIENT_RESOURCES);
}
else
{
return Collections.emptySet();
}
}
}