Files
MinecraftForge/patches/minecraft/net/minecraft/client/renderer/EffectInstance.java.patch
T
be5446b91c Update to 1.17
Update to Official classnames
Patchwork
Make the game compile and run
Merge in the new HUD overlay API
Merge in the new render properties API
PEEL
Use Gradle 7.2 snapshot to fix eclipse integration bug in 7.1, Would use 7.0 but FG needs 7.1 for some reason.
New FML installer
Update to 1.17.1

Co-authored-by: LexManos <[email protected]>
Co-authored-by: SizableShrimp <[email protected]>
Co-authored-by: cpw <[email protected]>
Co-authored-by: Curle <[email protected]>
Co-authored-by: Unnoen <[email protected]>
Co-authored-by: covers1624 <[email protected]>
Co-authored-by: DaemonUmbra <[email protected]>
Co-authored-by: gigaherz <[email protected]>
Signed-off-by: SizableShrimp <[email protected]>
2021-07-22 19:57:02 +01:00

23 lines
1.2 KiB
Diff

--- a/net/minecraft/client/renderer/EffectInstance.java
+++ b/net/minecraft/client/renderer/EffectInstance.java
@@ -60,7 +_,8 @@
private final EffectProgram f_108938_;
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 = null;
@@ -162,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_142591_(resourcelocation);
try {