mojira.dev
MC-277543

The order of passengers in boats is switched when a mob converts

A converting mob is always placed in the second slot after converting. (This means if the mob was already there it won't switch places so the order of my reproduction steps is important)

Steps to reproduce

  • Place a boat

  • Put a villager inside

  • Put a zombie inside

  • Wait for villager to convert

Observed Results

  • Zombie and Zombie Villager switch places

[media]

Expected Results

  • The mobs wouldn't switch places

Linked issues

Attachments

Comments 1

I can confirm.
no matter the old order of them, the converted mob always be the last one.

  in minecraft/world/entity/ConversionType.java

Entity entity3 = mob.getVehicle();
         if (entity3 != null) {
            mob.stopRiding();
            mob2.startRiding(entity3);
         }

because the converting code just let the old mob stop riding, then let the new mob start riding, so the new mob is always the last one.

Ceresjanin123

(Unassigned)

Community Consensus

Platform

Low

Mob behaviour

1.21.2 Pre-Release 3, 24w44a, 1.21.3, 1.21.4

Retrieved