diff options
author | makamys <makamys@outlook.com> | 2021-05-08 00:43:36 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2021-05-08 00:43:36 +0200 |
commit | d80373ad654a1f2d580a96e5e433712eaf045946 (patch) | |
tree | 3fc468dae13a3bfdd1a55a3b59b6fec401e43d35 /src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java | |
parent | e4fbba6e326619461e8e8bf2ebd20d2649aa2f41 (diff) | |
download | Neodymium-d80373ad654a1f2d580a96e5e433712eaf045946.tar.gz Neodymium-d80373ad654a1f2d580a96e5e433712eaf045946.tar.bz2 Neodymium-d80373ad654a1f2d580a96e5e433712eaf045946.zip |
less flicker
Diffstat (limited to 'src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java')
-rw-r--r-- | src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java b/src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java index e7595d9..8146431 100644 --- a/src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java +++ b/src/main/java/makamys/lodmod/mixin/MixinWorldRenderer.java @@ -10,6 +10,7 @@ import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.Redirect; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import makamys.lodmod.LODMod; import makamys.lodmod.ducks.ITessellator; @@ -36,6 +37,13 @@ abstract class MixinWorldRenderer implements IWorldRenderer { @Shadow public int posZ; + @Shadow + private boolean isInFrustum; + @Shadow + public boolean[] skipRenderPass; + @Shadow + private int glRenderList; + public List<ChunkMesh> chunkMeshes = new ArrayList<>(); @Redirect(method = "setPosition", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/entity/Render;renderAABB(Lnet/minecraft/util/AxisAlignedBB;)V")) |