Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
fix #700
Browse files Browse the repository at this point in the history
  • Loading branch information
xia-mc committed Aug 5, 2024
1 parent 5170bc9 commit ca1044b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public AutoHeal() {

@SubscribeEvent
public void onRender(TickEvent.RenderTickEvent event) {
if (!Utils.nullCheck() || mc.thePlayer.isDead) return;
if (!Utils.nullCheck() || mc.thePlayer.isDead || mc.playerController == null) return;
if (System.currentTimeMillis() - lastHeal < healDelay.getInput()) return;

if (mc.thePlayer.getHealth() <= minHealth.getInput()) {
Expand Down

0 comments on commit ca1044b

Please sign in to comment.