Roughly Enough Items Fabric/Forge/NeoForge (REI)

Roughly Enough Items Fabric/Forge/NeoForge (REI)

40M Downloads

[Bug] Cheat mode sends command as a chat message on vanilla servers

Fourmisain opened this issue ยท 2 comments

commented

What happened?

When trying to give yourself an item on a "vanilla" 1.19 server (any server without REI), the command is instead sent as a chat message.

Here's how that looks like:

cheating_commands

example

What mod loaders are you seeing the problem on?

Fabric

What do you think this bug is of?

  • Visual
  • Recipe Lookup
  • Cheat Mode
  • Plugin Integration / JEI Plugin Compatibility
  • Others

Relevant log output

-

Anything else?

Since 1.19, commands are now sent via it's own packet (yarn name CommandExecutionC2SPacket) and the existing methods slightly changed, e.g. instead of the previous
player.sendChatMessage("/give ...");
it is now
player.sendCommand("give ...");

commented

Oh!
I thought I was on the newest version because I'm using a mod updater - turns out the mod wasn't on the list, sorry about that!

commented

This has been fixed already, are you sure you are on the latest rei version?