Skip to content

Commit

Permalink
disable hand render in render world
Browse files Browse the repository at this point in the history
Signed-off-by: wefcdse <3371348169@qq.com>
  • Loading branch information
wefcdse committed Nov 8, 2024
1 parent d337a7c commit ba9bd7d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
loader_version=0.15.6

# Mod Properties
mod_version=1.1.8
mod_version=1.1.9
maven_group=com.iung.fpv20
archives_base_name=fpv20

Expand Down
14 changes: 14 additions & 0 deletions src/client/java/com/iung/fpv20/mixin/client/GameRendererMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,20 @@ public void mixin12(MatrixStack instance, Quaternionf quaternion) {
}
}

@Shadow
private boolean renderHand;

@Inject(
method = "renderWorld",
at = @At(
value = "HEAD"

)
)
public void render(float tickDelta, long limitTime, MatrixStack matrices, CallbackInfo ci) {
renderHand = !GlobalFlying.getFlying();
}

@Inject(
method = "renderHand",
at = @At("HEAD"), cancellable = true
Expand Down

0 comments on commit ba9bd7d

Please sign in to comment.