Skip to content

Commit

Permalink
Fixed Advanced OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
mineLdiver committed Aug 19, 2023
1 parent 291e768 commit 20b6d4d
Showing 1 changed file with 2 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package net.mine_diver.smoothbeta.mixin.client.multidraw.nop;

import net.minecraft.class_66;
import net.minecraft.util.math.Box;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(class_66.class)
public class ChunkRendererMixin {
@Redirect(
method = {
"method_298",
"method_296"
},
method = "method_296",
at = @At(
value = "INVOKE",
target = "Lorg/lwjgl/opengl/GL11;glNewList(II)V",
Expand All @@ -22,30 +18,7 @@ public class ChunkRendererMixin {
private void smoothbeta_nop_GL11_glNewList(int list, int mode) {}

@Redirect(
method = "method_298",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/util/math/Box;getOrCreate(DDDDDD)Lnet/minecraft/util/math/Box;"
)
)
private Box smoothbeta_nop_Box_getOrCreate(double d, double e, double f, double g, double h, double i) {
return null;
}

@Redirect(
method = "method_298",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/render/item/ItemRenderer;method_2024(Lnet/minecraft/util/math/Box;)V"
)
)
private void smoothbeta_nop_ItemRenderer_method_2024(Box box) {}

@Redirect(
method = {
"method_298",
"method_296"
},
method = "method_296",
at = @At(
value = "INVOKE",
target = "Lorg/lwjgl/opengl/GL11;glEndList()V",
Expand Down Expand Up @@ -96,14 +69,4 @@ private void smoothbeta_nop_GL11_glScalef(float x, float y, float z) {}
)
)
private void smoothbeta_nop_GL11_glPopMatrix() {}

@Redirect(
method = "method_303",
at = @At(
value = "INVOKE",
target = "Lorg/lwjgl/opengl/GL11;glCallList(I)V",
remap = false
)
)
private void smoothbeta_nop_GL11_glCallList(int list) {}
}

0 comments on commit 20b6d4d

Please sign in to comment.