Shader getShaderFi check for mod files (#9599)

* Shader getShaderFi check for mod files

* Just use tree.get()

It defaults to files.internal() if nothing is found. Actually, I think this also has the added benefit of allowing mods to override vanilla shaders by having a frag with an identical name.
This commit is contained in:
MEEPofFaith 2024-03-01 09:50:28 -08:00 committed by GitHub
parent 430753e923
commit aa896362dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -474,6 +474,6 @@ public class Shaders{
}
public static Fi getShaderFi(String file){
return Core.files.internal("shaders/" + file);
return tree.get("shaders/" + file);
}
}