5zig-reborn / 5zig-reborn/The-5zig-Mod
You can see chat messages and hear sounds from all of the accounts. AFK timer is also instantiated for each account.
- 主要言語
- Java
- スター
- 111
- フォーク
- 12
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
This bug is related to #96.
**Describe the bug**
Switching to another account makes you see chat messages from all of the accounts. You can also hear any sounds played to any account if the account you're currently controlling is in the range of a sound played at the specific coordinates.
This also makes 5zig have more than one instance of the AFK timer.
I own only two minecraft accounts so I couldn't test it with more. I suppose that you'd see messages and hear sounds not only from two of the logged in accounts.
**To Reproduce**
1. Log in with one account on any server. My choice was Mineplex because of the many sounds you hear on the lobby spawn.
2. Go to a lobby where there are players talking in the chat.
3. Go to a place where you can frequently hear sounds.
4. Write down the coordinates you are at (including Y).
5. Switch to the other account.
6. Disconnect from the server and join a singleplayer world.
❌ You can see the messages received by the other account.
7. Teleport to the previously written down coordinates of the other account.
❌ You can hear all the sounds the other account is hearing.
8. Stay AFK for 10 minutes (or change your system time to +10min) to make 5zig show you a notification about you being AFK.
❌ You will see more than one notification about being AFK.
9. Move your mouse on the window.
❌ You will see more than one notification about not being AFK now.
**Expected behavior**
- to not see the messages received by accounts other than the active one,
- to not hear the sounds played to accounts other than the active one,
- to not see multiple afk notifications.
**Screenshots**
(230V on the screenshot is my other account)
two accounts on one server (the same lobby) = you see doubled messages:

two accounts on different servers (or the same server but different lobbies) = you can see messages from both servers/lobbies:

multiple afk notifications:


**Desktop (please complete the following information):**
- OS: windows 10
- Version: π.0
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
The bug is about cross-account state isolation in a Minecraft mod. Look at the chat, sound, and AFK timer handling in the codebase, likely in modules managing per-account instances. Start by reproducing the issue locally with two accounts, then trace where chat messages and sounds are dispatched and stored. Check if there's a central event bus or listener that isn't scoped per account. The fix will involve ensuring each account's UI components only receive events for that account.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- game-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100