Files
MinecraftForge/patches/minecraft/net/minecraft/client/renderer/EffectInstance.java.patch
T
4a2db246e0 1.21 Update
Co-authored-by: RealMangoRage <[email protected]>
Co-authored-by: Daniel Norris <[email protected]>
Co-authored-by: Ven <[email protected]>
2024-06-13 10:42:32 -07:00

21 lines
1.2 KiB
Diff

--- a/net/minecraft/client/renderer/EffectInstance.java
+++ b/net/minecraft/client/renderer/EffectInstance.java
@@ -58,7 +_,7 @@
private final EffectProgram fragmentProgram;
public EffectInstance(ResourceProvider p_334130_, String p_108942_) throws IOException {
- ResourceLocation resourcelocation = ResourceLocation.withDefaultNamespace("shaders/program/" + p_108942_ + ".json");
+ ResourceLocation resourcelocation = ResourceLocation.tryParse(p_108942_).withPath(p -> "shaders/program/" + p + ".json");
this.name = p_108942_;
Resource resource = p_334130_.getResourceOrThrow(resourcelocation);
@@ -150,7 +_,7 @@
} else {
EffectProgram effectprogram;
if (program == null) {
- ResourceLocation resourcelocation = ResourceLocation.withDefaultNamespace("shaders/program/" + p_172569_ + p_172568_.getExtension());
+ ResourceLocation resourcelocation = ResourceLocation.tryParse(p_172569_).withPath(p -> "shaders/program/" + p + p_172568_.getExtension());
Resource resource = p_331503_.getResourceOrThrow(resourcelocation);
try (InputStream inputstream = resource.open()) {