Files
CatServer/patches/net/minecraft/client/shader/ShaderGroup.java.patch
2019-02-24 22:29:41 +08:00

13 lines
667 B
Diff

--- ../src-base/minecraft/net/minecraft/client/shader/ShaderGroup.java
+++ ../src-work/minecraft/net/minecraft/client/shader/ShaderGroup.java
@@ -179,7 +179,8 @@
if (framebuffer2 == null)
{
- ResourceLocation resourcelocation = new ResourceLocation("textures/effect/" + s3 + ".png");
+ String[] rl = ResourceLocation.splitObjectName(s3);
+ ResourceLocation resourcelocation = new ResourceLocation(rl[0], "textures/effect/" + rl[1] + ".png");
IResource iresource = null;
try