Skip to content

Commit

Permalink
fix remap issue in sodium mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
qouteall committed Aug 7, 2023
1 parent 954872f commit d8eeb08
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@
import org.spongepowered.asm.mixin.injection.At;
import qouteall.imm_ptl.core.render.ShaderCodeTransformation;

@Mixin(value = ShaderLoader.class, remap = false)
@Mixin(value = ShaderLoader.class)
public abstract class MixinSodiumShaderLoader {

@WrapOperation(
method = "loadShader",
at = @At(
value = "INVOKE",
target = "Lme/jellysquid/mods/sodium/client/gl/shader/ShaderLoader;getShaderSource(Lnet/minecraft/resources/ResourceLocation;)Ljava/lang/String;"
)
target = "Lme/jellysquid/mods/sodium/client/gl/shader/ShaderLoader;getShaderSource(Lnet/minecraft/resources/ResourceLocation;)Ljava/lang/String;",
remap = true
),
remap = false
)
private static String wrapGetShaderSource(
ResourceLocation name,
Expand Down

0 comments on commit d8eeb08

Please sign in to comment.