mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-24 22:14:32 +00:00
1.21 Update
Co-authored-by: RealMangoRage <[email protected]> Co-authored-by: Daniel Norris <[email protected]> Co-authored-by: Ven <[email protected]>
This commit is contained in:
941 files changed
+3119
-4266
No files matched your search
@@ -1,22 +1,20 @@
|
||||
--- a/net/minecraft/client/renderer/EffectInstance.java
|
||||
+++ b/net/minecraft/client/renderer/EffectInstance.java
|
||||
@@ -58,7 +_,8 @@
|
||||
@@ -58,7 +_,7 @@
|
||||
private final EffectProgram fragmentProgram;
|
||||
|
||||
public EffectInstance(ResourceProvider p_334130_, String p_108942_) throws IOException {
|
||||
- ResourceLocation resourcelocation = new ResourceLocation("shaders/program/" + p_108942_ + ".json");
|
||||
+ ResourceLocation rl = ResourceLocation.tryParse(p_108942_);
|
||||
+ ResourceLocation resourcelocation = new ResourceLocation(rl.getNamespace(), "shaders/program/" + rl.getPath() + ".json");
|
||||
- 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 +_,8 @@
|
||||
@@ -150,7 +_,7 @@
|
||||
} else {
|
||||
EffectProgram effectprogram;
|
||||
if (program == null) {
|
||||
- ResourceLocation resourcelocation = new ResourceLocation("shaders/program/" + p_172569_ + p_172568_.getExtension());
|
||||
+ ResourceLocation rl = ResourceLocation.tryParse(p_172569_);
|
||||
+ ResourceLocation resourcelocation = new ResourceLocation(rl.getNamespace(), "shaders/program/" + rl.getPath() + p_172568_.getExtension());
|
||||
- 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()) {
|
||||
Reference in new issue
Block a user