Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6564

1.17 - remapped-mojang incorrect remapping of ListTag#get

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • None
    • CraftBukkit version 3145-Spigot-9472b09-f992ce6 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT)
    • Yes

      Calls to "Tag net.minecraft.nbt.ListTag#get(int)" are being remapped by specialsource to "NBTBase NBTListTag#k(int)" - ie, the "get" method is remapped as "k".
      This shows up in a server console as an exception with message "Caused by: java.lang.NoSuchMethodError: 'net.minecraft.nbt.NBTBase net.minecraft.nbt.NBTTagList.k(int)'"

      Looking at the actual output Spigot-1.17.jar file in a decompiler, it appears the method is actually labeled as "get" in that jar. (Decompiled method: "public NBTBase get(int var0)"). The overall NBTTagList class appears to be a mix of proper names and single-letter obf method names, implying this issue may apply to more than just the one method.

            Unassigned Unassigned
            mcmonkey Mick Monkey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: