mojira.dev
MC-192362

Certain mobs cause log error spam in Mob Spawners

The following code is using Yarn mappings.

In 1.16.1, certain mobs cause log error spam in Mob Spawners. This includes any mob that implements the Angerable interface (Bee, Enderman, Iron Golem, Polar Bear, Wolf, Zombified Piglin).

The full log can be found at https://pastebin.com/TjB4WNgz. This was taken over the course of about 2 seconds.

The reason for this stems from the Angerable entity's readCustomDataFromTag method. Here's the Polar Bear's implementation, for example:

public void readCustomDataFromTag(CompoundTag tag) {
   super.readCustomDataFromTag(tag);
   this.angerFromTag((ServerWorld)this.world, tag);
}

angerFromTag requires a ServerWorld, but the readCustomDataFromTag method is being called from client-context, leading to a casting exception.

The full path rooting from the spawner is MobSpawnerLogic#getRenderedEntity -> EntityType#loadEntityWithPassengers -> EntityType#loadEntityFromTag -> EntityType#getEntityFromTag -> Entity#fromTag -> #Entity#readCustomDataFromTag.

 

 

Attachments

Comments 4

Thank you for your report!
However, this issue is Invalid.

Your game, launcher and/or server is modified.
If you can reproduce the issue in a vanilla environment, please create a new ticket.

  • Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang Studios or the Bugtracker.

  • Any plugin or resource pack issues need to be addressed to the creator of the plugin or resource pack.

  • If you have problems on large servers, such as The Hive and Hypixel, please contact them first as they run extensively modified server software.

Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord

Furthermore, the affected mobs will not render in the mob spawner as well. Here's a screenshot showing that a Polar Bear Spawner does not show the mob inside the spawner. 

[media]

Able to reproduce in Vanilla 1.16.1

See MC-189565 for the issue in vanilla.

Draylar

(Unassigned)

Unconfirmed

(Unassigned)

1.16.1

Retrieved