AppliedEnergistics / Applied-Energistics-2

A Minecraft Mod about Matter, Energy and using them to conquer the world..
https://appliedenergistics.github.io/
Other
1.39k stars 623 forks source link

Failed to decode packet 'clientbound/minecraft:custom_payload' on trying to open an ME network #8014

Closed WhitePhant0m closed 1 week ago

WhitePhant0m commented 2 weeks ago

Describe the bug

Whenever a player tries to open an ME network with some specific item(s) inside it, they get disconnected. This is the nbt of said item in an item cell.

          {
            #t: "ae2:i",
            components: {
              minecraft:item_name: "{\"italic\":false,\"text\":\"Arrow of Super Fatigue\"}",
              minecraft:rarity: "uncommon",
              minecraft:potion_contents: {
                custom_effects: [
                  {
                    duration: 450,
                    amplifier: 4b,
                    show_icon: 1b,
                    id: "minecraft:slowness"
                  },
                  {
                    duration: 555,
                    amplifier: 2b,
                    show_icon: 1b,
                    id: "minecraft:mining_fatigue"
                  }
                ],
                custom_color: 1682431
              }
            },
            #: 7L,
            id: "minecraft:tipped_arrow"
          }

How to reproduce the bug

New World.zip Open attached world, try to open the ME chest, get disconnected.

Expected behavior

Not getting disconnected on opening the ME network.

Additional details

latest.log debug.log disconnect-client.txt

Which minecraft version are you using?

1.21

On which mod loaders does it happen?

NeoForge

Crash log

https://mclo.gs/GcTBtPk

shartte commented 2 weeks ago

Thank you for the detailed report

Phantom @.***> schrieb am Mo., 8. Juli 2024, 02:15:

Describe the bug

Whenever a player tries to open an ME network with some specific item(s) inside it, they get disconnected. This is the nbt of said item in an item cell.

      {
        #t: "ae2:i",
        components: {
          minecraft:item_name: "{\"italic\":false,\"text\":\"Arrow of Super Fatigue\"}",
          minecraft:rarity: "uncommon",
          minecraft:potion_contents: {
            custom_effects: [
              {
                duration: 450,
                amplifier: 4b,
                show_icon: 1b,
                id: "minecraft:slowness"
              },
              {
                duration: 555,
                amplifier: 2b,
                show_icon: 1b,
                id: "minecraft:mining_fatigue"
              }
            ],
            custom_color: 1682431
          }
        },
        #: 7L,
        id: "minecraft:tipped_arrow"
      }

How to reproduce the bug

New World.zip https://github.com/user-attachments/files/16121425/New.World.zip Open attached world, try to open the ME chest, get disconnected. Expected behavior

Not getting disconnected on opening the ME network. Additional details

latest.log https://mclo.gs/FZPZQA5 debug.log https://mclo.gs/lo6dkHg disconnect-client.txt https://mclo.gs/UWGgr50 Which minecraft version are you using?

1.21 On which mod loaders does it happen?

NeoForge Crash log

https://mclo.gs/GcTBtPk

— Reply to this email directly, view it on GitHub https://github.com/AppliedEnergistics/Applied-Energistics-2/issues/8014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJT6V4LVJZITI23C2JG4QDZLHKZTAVCNFSM6AAAAABKPZHFV2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TIMRZHA3DMMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ptlthg commented 1 week ago

This also happens to me with the following item

{
    "components": {
        "minecraft:item_name": {
            "italic": false,
            "text": "Splash Potion of Water Boost"
        },
        "minecraft:rarity": "uncommon",
        "minecraft:potion_contents": {
            "custom_effects": [
                {
                    "duration": 1200, 
                    "show_icon": true, 
                    "id": "minecraft:water_breathing"
                },
                {
                    "duration": 1200, 
                    "show_icon": true, 
                    "id": "minecraft:dolphins_grace"
                }
            ], 
            "custom_color": 3847167
        }
    }, 
    "count": 1, 
    "id": "minecraft:splash_potion"
}