Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-3425: Correct slot type calculation
Dieser Commit ist enthalten in:
Ursprung
b5df1f59f7
Commit
70be90e168
@ -133,7 +133,7 @@ public class CraftInventoryView extends InventoryView {
|
|||||||
} else if (slot > 35) {
|
} else if (slot > 35) {
|
||||||
type = SlotType.QUICKBAR;
|
type = SlotType.QUICKBAR;
|
||||||
}
|
}
|
||||||
} else if (slot >= (inventory.countSlots() - 9)) {
|
} else if (slot >= (inventory.countSlots() - (9 + 4 + 1))) { // Quickbar, Armor, Offhand
|
||||||
type = SlotType.QUICKBAR;
|
type = SlotType.QUICKBAR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren