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

Cured villagers don't give discounts if the player that cured it logs off before the conversion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.1
    • None
    • Community Consensus
    • Village system
    • Normal
    • Platform

      If a villager starts curing while the player who started it, is offline. The player doesnt get a discount. This is due to EntityGetter.getPlayerByUUID returning NULL, since it only searches online players.

       

      1. Get Zombie Villager in a multiplayer world
      2. Start curing it like normal
      3. Disconnect
      4. Wait for curing to finish
      5. Reconnect
      6. Villager cured, but no discount received

       

      Fix: If the No Online player can be found. Search through offline players aswell. Since in theory this should never be Null, as curing can only be started by a player

            Unassigned Unassigned
            DigTheDJ Eirik Skarding
            Votes:
            7 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: