mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
Identify outside slot independent of inventory type. Fixes BUKKIT-2768
This commit is contained in:
parent
e61a6bab05
commit
e1b50b0110
@ -75,7 +75,7 @@ public class CraftInventoryView extends InventoryView {
|
|||||||
|
|
||||||
public static SlotType getSlotType(InventoryView inventory, int slot) {
|
public static SlotType getSlotType(InventoryView inventory, int slot) {
|
||||||
SlotType type = SlotType.CONTAINER;
|
SlotType type = SlotType.CONTAINER;
|
||||||
if (slot < inventory.getTopInventory().getSize()) {
|
if (slot >= 0 && slot < inventory.getTopInventory().getSize()) {
|
||||||
switch(inventory.getType()) {
|
switch(inventory.getType()) {
|
||||||
case FURNACE:
|
case FURNACE:
|
||||||
if (slot == 2) {
|
if (slot == 2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user