Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Crafter PrepareItemCraftEvents always have null recipe

Đang mở
#14,428 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Doc94 đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #14429 của @Doc94 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
api, backend

Hướng nghiên cứu

Start from the Bukkit CraftingInventory#getRecipe path and trace how it calls CraftingContainer#getCurrentRecipe for a crafter. The issue identifies CrafterBlockEntity as the missing override; check nearby recipe handling and tests for this block entity. Done means PrepareItemCraftEvent#getRecipe returns the recipe in the crafter menu instead of null.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

status: accepted version: 26.3
Expected behavior

PrepareItemCraftEvent#getRecipe to return the recipe currently within the crafter.

Observed/Actual behavior

PrepareItemCraftEvent#getRecipe always returns null

Steps/models to reproduce
  1. Create a listener for the PrepareItemCraftEvent
  2. Setup recipes inside of a crafter menu
  3. Observe the result of getRecipe
Plugin and Datapack List
Image Image

(recreated it with running the paper dev server & just adding a listener to log the recipe)

Paper version
Image (running with the latest commit 7f9c79794e16e8fb13582e66ae38c4cf074481cf)
Other

The root cause of this seems to be that the bukkit method CraftingInventory#getRecipe relies on the nms method CraftingContainer#getCurrentRecipe which defaults to returning null and CrafterBlockEntity does not override it.

Ngôn ngữ chính
Java
Star
12.8k
Fork
3.6k
Merge trung bình
4 ngày 13 giờ
Pull request đã merge (30 ngày)
46

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PaperMC/Paper

Tất cả issue của PaperMC/Paper

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.