Dehydration

Dehydration

1M Downloads

Water Bar still appears in Spectator Mode

TheDeathlyCow opened this issue ยท 3 comments

commented

Minecraft Version

1.21.x

Mod Loader Version

0.15.11

Mod Version

1.3.6

Describe the Issue

While testing out Scorchful's Dehydration integration on 1.21, I noticed that the water bar still appears on the HUD when in spectator mode. I'm assuming this isn't intended, as the bar does not show in creative mode. From analysis of the code, I think this line is all the needs to be updated with something like an isSpectator() check.

if (playerEntity != null && !playerEntity.isInvulnerable() && !playerEntity.isCreative() && !client.options.hudHidden) {

latest.log

latest.log
image

Do you use any other mods except the required ones?

Scorchful, Thermoo, Mod Menu, Satin, Cardinal Components API

commented

Yeah that PR looks like it should fix it. I must've missed it, sorry.

commented

Fixed with the update.