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:
parent
36f9c804d9
commit
7e79243bca
1 changed files with 8 additions and 1 deletions
|
@ -116,10 +116,17 @@ public class ModFileResourcePack extends ResourcePack
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
|
{
|
||||||
|
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();
|
return Collections.emptySet();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public InputStream getResourceStream(ResourcePackType type, ResourceLocation location) throws IOException {
|
public InputStream getResourceStream(ResourcePackType type, ResourceLocation location) throws IOException {
|
||||||
if (location.getPath().startsWith("lang/")) {
|
if (location.getPath().startsWith("lang/")) {
|
||||||
|
|
Loading…
Reference in a new issue