Mojira Archive
MC-157950

Custom villager without offers appears with trades when reconnecting/reloading chunk

The bug

Summoning a villager with an empty Offers tag correctly spawn a villager which cannot be traded with. However, when reopening the world the villager has trades.

How to reproduce

  1. /summon minecraft:villager ~ ~2 ~ {CustomNameVisible:1b,PersistenceRequired:1b,Health:20000f,CustomName:"{\"text\":\"John\",\"bold\":\"true\",\"color\":\"green\"}",VillagerData:{level:1,profession:"minecraft:leatherworker",type:"minecraft:snow"},NoAI:1b,Offers:{}}
    
  2. Right click the villager
    It cannot be traded with
  3. Reopen the world
  4. Right click the villager
    It has trades

Cannot Reproduce

Carlos Jiménez

2019-07-28, 11:37 PM

2024-10-19, 08:27 PM

2024-10-19, 08:27 PM

9

5

Confirmed

(Unassigned)

1.14.4 - 1.18.11.14.4, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w49a, 1.16.5, 21w08b, 1.18.1

-