Use official mappings for in-repo patches, will be converted to SRG during build.

This commit is contained in:
LexManos committed 2023-09-11 14:47:34 -07:00
1 parent 4786fa6f89
commit 40a7998281
641 files changed
+9696 -9678

No files matched your search

@@ -1,22 +1,22 @@
--- a/net/minecraft/client/renderer/EffectInstance.java
+++ b/net/minecraft/client/renderer/EffectInstance.java
@@ -58,7 +_,8 @@
private final EffectProgram f_108938_;
private final EffectProgram fragmentProgram;
public EffectInstance(ResourceManager p_108941_, String p_108942_) throws IOException {
- ResourceLocation resourcelocation = new ResourceLocation("shaders/program/" + p_108942_ + ".json");
+ ResourceLocation rl = ResourceLocation.m_135820_(p_108942_);
+ ResourceLocation resourcelocation = new ResourceLocation(rl.m_135827_(), "shaders/program/" + rl.m_135815_() + ".json");
this.f_108932_ = p_108942_;
Resource resource = p_108941_.m_215593_(resourcelocation);
+ ResourceLocation rl = ResourceLocation.tryParse(p_108942_);
+ ResourceLocation resourcelocation = new ResourceLocation(rl.getNamespace(), "shaders/program/" + rl.getPath() + ".json");
this.name = p_108942_;
Resource resource = p_108941_.getResourceOrThrow(resourcelocation);
@@ -150,7 +_,8 @@
} else {
EffectProgram effectprogram;
if (program == null) {
- ResourceLocation resourcelocation = new ResourceLocation("shaders/program/" + p_172569_ + p_172568_.m_85569_());
+ ResourceLocation rl = ResourceLocation.m_135820_(p_172569_);
+ ResourceLocation resourcelocation = new ResourceLocation(rl.m_135827_(), "shaders/program/" + rl.m_135815_() + p_172568_.m_85569_());
Resource resource = p_172567_.m_215593_(resourcelocation);
- 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());
Resource resource = p_172567_.getResourceOrThrow(resourcelocation);
try (InputStream inputstream = resource.m_215507_()) {
try (InputStream inputstream = resource.open()) {