mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Co-authored-by: RealMangoRage <[email protected]> Co-authored-by: Daniel Norris <[email protected]> Co-authored-by: Ven <[email protected]>
21 lines
1.2 KiB
Diff
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()) {
|