Problems with villager zombification

Abierto
#14,465 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java
Área
backend

Línea de trabajo

Start by tracing villager profession handling during zombification and curing in Paper’s server code; the issue does not name a file or test. Compare the profession and locked trades before zombification, on the zombie villager, and after curing, then look for an existing test that covers this conversion. Done means the profession and original trades are preserved through both steps, with the expected discount.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

status: needs triage version: 26.3
Expected behavior

When a librarian villager with locked trades (traded with at least once) is zombified, the zombie villager should still be a librarian. After curing, it should be a librarian with its original trades and a discount on them.

Observed/Actual behavior

In about 50 zombifications, two librarians with locked trades (two different villagers) changed their profession to toolsmith during the zombification itself. The resulting zombie villager changed to a toolsmith, and it stayed a toolsmith after curing.

Steps/models to reproduce

Trade with a librarian villager at least once to lock its trades.
Let a zombie convert it into a zombie villager (normal zombification, no smithing tables or other job blocks nearby).
Check the zombie villager's profession: in rare cases (2 of ~50) it is a toolsmith instead of a librarian.
Cure it: it stays a toolsmith.

Plugin and Datapack List

No Plugins or Datapacks installed

Paper version

This server is running Paper version 26.3-240-main@6b68358 (2026-11-04T04:04:15Z) (Implementing API version 26.3.build.240-stable)
You are 2 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: 26.3-227-7f9c797 (MC: 26.3)

Other

No response

Lenguaje dominante
Java
Estrellas
12.8k
Forks
3.6k
Merge medio
2 d 21 h
PR fusionados (30 d)
33

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PaperMC/Paper

Todos los issues de PaperMC/Paper

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.