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

Oversaturation icons are buggy when entering and/or exiting water

未关闭
#121 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Bug
主要语言
Java
星标
111
派生
12
PR 合并指标
30 天内没有已合并 PR

描述

**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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
game-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。