From 06ae58d3cd650b9efad14634b06829ce7c7b161a Mon Sep 17 00:00:00 2001 From: Provismet <17149901+Provismet@users.noreply.github.com> Date: Sun, 1 Oct 2023 00:23:09 +0100 Subject: [PATCH] Fix divide by zero error. --- src/main/java/com/provismet/vmcmc/vmc/CaptureRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/provismet/vmcmc/vmc/CaptureRegistry.java b/src/main/java/com/provismet/vmcmc/vmc/CaptureRegistry.java index 601757e..c9018c7 100644 --- a/src/main/java/com/provismet/vmcmc/vmc/CaptureRegistry.java +++ b/src/main/java/com/provismet/vmcmc/vmc/CaptureRegistry.java @@ -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 -> {