tierrif / chat-utils

Minecraft Fabric client-side mod to ease chat message copying.
https://modrinth.com/mod/chatutils/
GNU Lesser General Public License v3.0
17 stars 6 forks source link

When trying to copy a message, says "Unknown command." (Fabric) #1

Closed cybertelx closed 3 years ago

cybertelx commented 3 years ago

How to reproduce:

  1. Install mod
  2. Join a server
  3. Click on a message

Mod Version: 1.4.0 (latest) MC Version: 1.16.3 Fabric API: fabric-api-0.21.0+build.407-1.16

Mods: Cloth Config 2 Fabric API AppleSkin Chat Macros VoxelMap Mod Menu Not Enough Crashes MaLiLib Roughly Enough Items Shulker Box Tooltip Sodium ViaFabric Voyager Wurst

tierrif commented 3 years ago

image ~~I can't reproduce with these settings. Fabric API is the same as yours (fabric-api-0.21.0+build.407-1.16), Minecraft 1.16.3, MaLiLib 0.10.0-dev.21+arne.1, ModMenu 1.14.6+build.31. I will test compatibility with your other mods all together, with their latest 1.16.3-compatible versions.~~ Managed to reproduce with Wurst, and it is cancelling client-side commands for some reason. I can't do much about this myself, as other mods shouldn't interfere with this. I will look into a HeadlessException being thrown due to another incompatibility now.

tierrif commented 3 years ago

Alright, I found all issues. Wurst cancels in-game commands, I assume it's because it has its own local commands with the . prefix. From the looks of it, it doesn't seem like it's my problem. ViaFabric seems to cause a HeadlessException with the same steps, which happens when accessing system clipboard. I can't find a cause for this.

Could you please try disable both these mods and see if it works fine?

cybertelx commented 3 years ago

I disabled them, yes they work! Thank you! Is there a way to make the Wurst and chat-macros work together?

tierrif commented 3 years ago

Unfortunately, it looks like I can't solve this right now, as the mod is. In the future, I have plans to change the way copying to clipboard works, into not using any commands, but for now, as this works based on chat click events which can only run commands by default, I'll have to rely on commands.

It's still very weird, for the fact Wurst doesn't allow other mods to have custom commands. And if it does, something's not right. Maybe what you can do is contact Wurst's developers, as this will affect any mod that has custom commands for sure.

Closing this now. If you do find this to be chat-macros' issue though, please re-open a new issue and explain the cause. Thanks!