ForgePatch/patches/minecraft/net/minecraft/client/shader/ShaderManager.java.patch

13 lines
667 B
Diff

--- a/net/minecraft/client/shader/ShaderManager.java
+++ b/net/minecraft/client/shader/ShaderManager.java
@@ -50,7 +50,8 @@
private final ShaderLoader field_148012_t;
public ShaderManager(IResourceManager p_i45087_1_, String p_i45087_2_) throws IOException {
- ResourceLocation resourcelocation = new ResourceLocation("shaders/program/" + p_i45087_2_ + ".json");
+ ResourceLocation rl = ResourceLocation.func_208304_a(p_i45087_2_);
+ ResourceLocation resourcelocation = new ResourceLocation(rl.func_110624_b(), "shaders/program/" + rl.func_110623_a() + ".json");
this.field_148007_m = p_i45087_2_;
IResource iresource = null;