5zig-reborn / 5zig-reborn/The-5zig-Mod

Oversaturation icons are buggy when entering and/or exiting water

Aperta
#121 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Bug
Lingua principale
Java
Stelle
111
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
This is mostly a visual bug and fixing of it is obviously not a high priority for me, so feel free to tackle this whenever.

The bug is, that the oversaturation disappears and reappears when entering and leaving a body of water.
This is (I assume) expected as the bubbles while swimming underwater appear on that exact position.
The problem with this is, that with the swim and water changes introduced in MC 1.13 was the disappearing of bubbles changed. Unlike before where it was instant will they now disappear after they have been refilled.
This causes the weird behaviour, where the bubbles show over the oversaturation icons as those are set to instantly reappear after you leave the water.

I have suggestions on how this could be fixed.

*1) Make the bubbles appear over the oversaturation*
If possible could you rearange the position of the bubbles to be over the new row of saturation.
This would obviously look a bit odd tho.

*2) New icon for oversaturation*
I personally would go for this one if feasible.
Just change the saturation icon of vanilla minecraft to a different one (Different outline or icon) when it is oversaturated, similar to what certain mods out there do (for other things than oversaturation).

**To Reproduce**
Steps to reproduce the behavior:
1. Have showing of oversaturation activated
2. Go into water
3. Swim around underwater
4. Go out of the water while bubbles are recharging

**Expected behavior**
The icons shouldn't overlap

**Screenshots**
![image](https://user-images.githubusercontent.com/11576465/98007373-9a6c9d80-1df3-11eb-8932-39d5ce2e1502.png)

**Desktop (please complete the following information):**
- OS: Windows 10
- Version: 1.16.3 b242

**Additional context**
As I mentioned at the beginning can this be treated as a low priority issue as it is only a minor visual issue and doesn't break the game in a bad way.
I just wanted to post this here to have it "logged" and not possibly lost in other places like Discord chat.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Look at the HUD rendering code for the oversaturation and bubble icons, likely in a class handling the in-game overlay. Understand how Minecraft 1.13+ changed bubble disappearance. Test by entering/exiting water with oversaturation enabled to see the overlap. Determine if repositioning icons or creating a new oversaturation icon is feasible within the mod's architecture.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
game-dev
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.