KubeJS

KubeJS

69M Downloads

Player can circumvent death on server

TheQKnight opened this issue ยท 3 comments

commented

Minecraft Version

1.18.2

KubeJS Version

fabric-1802.5.1-build.366

Rhino Version

fabric-1801.1.9-build.135

Architectury Version

architectury-4.2.50

Forge/Fabric Version

Fabric-0.13.3

Describe your issue

This bug happens when a player who does not have KubeJS installed dies ( by natural means, not /kill) on a server that does have KubeJS, and leaves the game before respawning. When joining back, the player will still be alive. [Server thread/WARN]: handleDisconnection() called twice is also logged to the console.

Crash report/logs

https://pastebin.com/a5wWxBuQ

commented

Forgot to mention, This happens about ~30% of the time on my testing. I just leave the game and join back continuously until it happens.

commented

Also, player looks like this when logged back in...
image

commented

Nevermind. This was a bug with one of my scripts stupidly setting the player health back to 1 after it reached 0