Problems with villager zombification

オープン
#14,465 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Java
スター
12.8k
フォーク
3.6k
平均マージ
2日 21時間
マージ済み PR(30日)
33

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PaperMC/Paper のほかの issue

PaperMC/Paper の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。