geforkt von Mirrors/Paper
Identify outside slot independent of inventory type. Fixes BUKKIT-2768
By: EdGruberman <ed@rjump.com>
Dieser Commit ist enthalten in:
Ursprung
04d0f1b0b5
Commit
6841600fbf
@ -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) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren