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

Constant error flooding while rendering spawners for neutral mobs.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: 1.16
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Manjaro Linux, 64 bit, 12GiB of RAM allocated, openjdk java 8
    • Confirmation Status:
      Unconfirmed
    • Category:
      (Unassigned)

      Description

      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!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: