Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-191411

Constant error flooding while rendering spawners for neutral mobs.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16
    • None
    • Manjaro Linux, 64 bit, 12GiB of RAM allocated, openjdk java 8
    • Unconfirmed
    • (Unassigned)

      To preface: I'm a modder, and so have some more insight into the particular workings of this bug than I would otherwise.

      To replicate the bug, just execute the command "/setblock ~ ~ ~ spawner{SpawnData:{id:"minecraft:enderman"}}". The log will begin to be repeatedly filled with an error. This bug also applies to any neutral mob that was affected by the recent changes to anger targeting AI such as Iron Golems and Zombified Piglins.

      From looking at the yarn-mapped source code, the error occurs in the code that decodes the data for neutral mobs. It tries to find its anger value and calls a method that gets its anger from the NBT tag, which requires a server-side world object. The method decoding the tag expects only to be run in a server environment, and casts the world to a server-side world. This causes an error when this method is called from within the spawner's rendering code.

      Maybe just disable that part of the NBT decoding on the client?

      Thank you for your time!

            Unassigned Unassigned
            SoapyXM Sophie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: