Easy NPC

Easy NPC

2M Downloads

[Bug] Client loses connection while interacting with a npc while another player is currently interacting with the npc

khazenor opened this issue ยท 0 comments

commented

๐Ÿ’ก Check the
Bug Tracker
and Crash Tracker before
reporting a new issue.
There you can find a lot of useful information and solutions for common problems.

Note:
Please make sure to fill out the following template to the best of your ability. This will help us
to identify and fix the issue faster.

Minecraft and Mod version ๐Ÿž
Minecraft: 1.21
Neoforged: 21.0.167
EasyNpc: easy_npc-neoforge-1.21-5.5.10.jar

Describe the bug ๐Ÿž
When a second player on a server tries to trade with the same npc, their client loses connect with the following error message Internal Exception: io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:system_chat'

To Reproduce โš™๏ธ
Steps to reproduce the behavior:

  1. open a world with user 1
  2. create a humanoid npc and setup a random trade
  3. user 1 right clicks the npc to trade
  4. open and join the world as user 2
  5. user 2 right click the humanoid while user 1 is still interacting with the npc

Result: user 2 loses connection

Expected behavior โœ”๏ธ
User 2 should be able to trade with npc while user 1 is trading. Either that or user 2 should get a message saying another player is trade with that villager.

Screenshots ๐Ÿ“ธ
If applicable, add screenshots to help explain your problem.

Debugging ๐Ÿ› ๏ธ
Before reporting an issue, please enable the debug mode over /easy_npc debug true to get more
detailed information about the issue in the logs.
Additionally, check if there is anything relevant in the crash-reports, debug.log, and latest.log
file.
debug.log
latest.log

Is the issue happening in combination with other mods? (If yes, please provide a full list) ๐Ÿงฉ

Nope. I've tested with just easyNpc on it's own

Additional context ๐Ÿ“
Add any other context about the problem here.