Skip to content

Commit

Permalink
Fix divide by zero error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Provismet committed Sep 30, 2023
1 parent b8515ca commit 06ae58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/provismet/vmcmc/vmc/CaptureRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void registerStandardEvents () {
});

CaptureRegistry.register("relative_health", CaptureType.BLEND_SHAPE, client -> {
return client.player.getMaxHealth() / client.player.getHealth();
return client.player.getHealth() / client.player.getMaxHealth();
});

CaptureRegistry.register("hurt", CaptureType.BLEND_SHAPE, client -> {
Expand Down

0 comments on commit 06ae58d

Please sign in to comment.