Crafter PrepareItemCraftEvents always have null recipe
Maintainer thường phản hồi trong vòng 1 ngày
Đá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
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ả
Expected behavior
PrepareItemCraftEvent#getRecipe to return the recipe currently within the crafter.
Observed/Actual behavior
PrepareItemCraftEvent#getRecipe always returns null
Steps/models to reproduce
- Create a listener for the PrepareItemCraftEvent
- Setup recipes inside of a crafter menu
- Observe the result of getRecipe
Plugin and Datapack List
(recreated it with running the paper dev server & just adding a listener to log the recipe)
Paper version
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PaperMC/Paper
-
Cancelled interact event should not send a swing packet.Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởstatus: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
PaperMC/Paper#14375 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add .getIgniter() to ExplosiveMinecartCó thể đã có người làm @WouterGritter đã nhận 43 ngày trước. Đang mởstatus: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PaperMC/Paper#14097 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BlockType#isOccluding is incorrectly handledCó thể đã có người làm @ryoji-ikeda đã nhận 186 ngày trước. Đang mởstatus: accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PaperMC/Paper#13790 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status: needs triage version: 26.3
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
-
status: needs triage version: 26.3
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
PaperMC/Paper#14412 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PaperMC/Paper
Issue tương tự
-
[BUG] micronaut-serde-oracle-jdbc-json brings a second OJDBC driver onto the runtime classpathCó thể đã có người làm @ZARAYACH đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
micronaut-projects/micronaut-serialization#1494 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 2 ngày
-
code-health feature/sync OS/Android QA/Test-Plan-Specified QA/Yes
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
brave/brave-browser#60327 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
it-at-m/raumreservierung#383 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws/context-ontology-accelerator#325 ·
Maintainer thường phản hồi trong vòng 1 ngày