Skip to content

Auto log doesn't disable properly when Health setting is set to 0 #5981

@boasbakker

Description

@boasbakker

Describe the bug

In the tooltip of the Health setting of the Auto Log module, it is stated:

Automatically disconnects when your health is lower or equal to this value. Set to 0 to disable.

However, when you are about to die, auto log still automatically logs off:

[00:15:30] [Render thread/WARN]: Client disconnected with reason: [AutoLog] Health was going to be lower than 0.

It seems to only happen in very specific circumstances, but I've found a reproduction method.

Situation:
I was in 2b2t in lava and my fire resistance ran out. I wanted to eat a enchanted golden apple but I still had auto eat enabled, which forces me to eat golden carrots instead. Luckily I had a totem so nothing should've gone wrong, but auto log logged me out which caused me to have to wait in the queue for another 30 hours.

Steps to reproduce

  1. Enable auto log
  2. Set Health setting to 0 (and enable Predict incoming damage)
  3. Create a creative mode world a place a block of magma, go next to the block of magma
    Example reproduction:
  4. Go to survival mode and apply the command /effect give @s minecraft:instant_damage 1 0
  5. Wait until you've regenerated all your hearts except one half, then step on the magma
  6. Wait until you get logged out

This video demonstrates it: https://youtu.be/7a1AxaFP6C4
The same effect applies when holding a totem of undying.

Meteor Version

I've tested 1.21.11-24 and 1.21.4-42

Minecraft Version

I've tested 1.21.11 and 1.21.4

Operating System

Windows

Before submitting a bug report

  • This bug wasn't already reported (I have searched bug reports on GitHub).

  • This is a valid bug (I am able to reproduce this on the latest dev build).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions