Skip to content

Commit

Permalink
Actually check if the object is a FabricShaderProgram before rewriting
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSpring committed Dec 17, 2024
1 parent e8abff2 commit 4879e2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public ShaderInstanceInject(ResourceProvider provider, ResourceLocation resource
cancellable = true
)
private void kilt$addForgeSupportToFabricAPI(String id, CallbackInfoReturnable<String> cir) {
if (id.contains(":")) {
if (id.contains(":") && !(((Object) this) instanceof FabricShaderProgram)) {
cir.setReturnValue(FabricShaderProgram.rewriteAsId(id, this.name));
}
}
Expand Down

0 comments on commit 4879e2b

Please sign in to comment.