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.

Đang mở
#125 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Bug
Ngôn ngữ chính
Java
Star
111
Fork
12
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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:
![image](https://user-images.githubusercontent.com/43796685/101286691-366f3780-37ec-11eb-8145-a908c2d56635.png)
two accounts on different servers (or the same server but different lobbies) = you can see messages from both servers/lobbies:
![image](https://user-images.githubusercontent.com/43796685/101287426-851ed080-37f0-11eb-988f-bf231ab94c1f.png)
multiple afk notifications:
![image](https://user-images.githubusercontent.com/43796685/101289136-e21f8400-37fa-11eb-97af-f6a966f4ca2d.png)
![image](https://user-images.githubusercontent.com/43796685/101289144-f5325400-37fa-11eb-86cf-86c97f517ba3.png)

**Desktop (please complete the following information):**
- OS: windows 10
- Version: π.0

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
game-dev
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.