mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
SPIGOT-3272: Fix duplicate creative inventory
This change properly identifies the creative inventory as one with 5 crafting slots (as that's the default set in ContainerPlayer, and handled properly in other containers), instead of having the same inventory twice (which breaks slot identification).
This commit is contained in:
1 parent
274304b8ca
commit
44dd60ac27
2 files changed
+16
-17
No files matched your search
@@ -127,7 +127,7 @@ public class CraftInventoryView extends InventoryView {
|
||||
} else {
|
||||
if (slot == -999 || slot == -1) {
|
||||
type = SlotType.OUTSIDE;
|
||||
} else if (inventory.getType() == InventoryType.CRAFTING) {
|
||||
} else if (inventory.getType() == InventoryType.CRAFTING) { // Also includes creative inventory
|
||||
if (slot < 9) {
|
||||
type = SlotType.ARMOR;
|
||||
} else if (slot > 35) {
|
||||
|
||||
Reference in new issue
Block a user