aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium/mixin/MixinTessellator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/neodymium/mixin/MixinTessellator.java')
-rw-r--r--src/main/java/makamys/neodymium/mixin/MixinTessellator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/makamys/neodymium/mixin/MixinTessellator.java b/src/main/java/makamys/neodymium/mixin/MixinTessellator.java
index cdd4ffe..935b860 100644
--- a/src/main/java/makamys/neodymium/mixin/MixinTessellator.java
+++ b/src/main/java/makamys/neodymium/mixin/MixinTessellator.java
@@ -20,7 +20,10 @@ abstract class MixinTessellator implements ITessellator {
@Shadow private boolean isDrawing;
- @Inject(method = "draw", at = @At(value = "HEAD"), cancellable = true)
+ @Inject(method = "draw",
+ at = @At(value = "HEAD"),
+ cancellable = true,
+ require = 1)
private void preDraw(CallbackInfoReturnable<Integer> cir) {
if(nd$captureMeshes) {
ChunkMesh.preTessellatorDraw((Tessellator)(Object)this);