MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

"No SRG name found" when using "Copy / Paste Special... > AT Entry"

Open octylFractal opened this issue 1 year ago • 1 comments

Minecraft Development for IntelliJ plugin version

2024.2-1.8.1

IntelliJ version

2024.2.1 / 242.21829.142

Operating System

Linux 6.10.9-arch1-1

Target platform

No response

Description of the bug

Target platform: NeoForge, it wasn't in the drop down.

When I use the "Copy / Paste Special... > AT Entry" context action on any MC code from NeoForge, nothing is copied and "No SRG name found" is shown. NeoForge 1.21 does not use SRG names at all in ATs, so this makes sense. The entry should be entirely based off of the Mojang mappings.

This can be reproduced easily using any NeoForge project, adding:

        ChunkHolder holder = null;
        holder.changedBlocksPerSection[0] = null;

and trying to copy an AT entry for changedBlocksPerSection.

octylFractal avatar Sep 11 '24 17:09 octylFractal

This is implemented in #2365

RedNesto avatar Sep 11 '24 18:09 RedNesto