mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Identify outside slot independent of inventory type. Fixes BUKKIT-2768
This commit is contained in:
parent
e61a6bab05
commit
e1b50b0110
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class CraftInventoryView extends InventoryView {
|
|||
|
||||
public static SlotType getSlotType(InventoryView inventory, int slot) {
|
||||
SlotType type = SlotType.CONTAINER;
|
||||
if (slot < inventory.getTopInventory().getSize()) {
|
||||
if (slot >= 0 && slot < inventory.getTopInventory().getSize()) {
|
||||
switch(inventory.getType()) {
|
||||
case FURNACE:
|
||||
if (slot == 2) {
|
||||
|
|
Loading…
Add table
Reference in a new issue