mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Use correct SlotType's for merchants. Fixes BUKKIT-2257
This commit is contained in:
parent
b059962a5c
commit
fc35d000e4
1 changed files with 7 additions and 0 deletions
|
@ -102,6 +102,13 @@ public class CraftInventoryView extends InventoryView {
|
|||
type = SlotType.CRAFTING;
|
||||
}
|
||||
break;
|
||||
case MERCHANT:
|
||||
if (slot == 2) {
|
||||
type = SlotType.RESULT;
|
||||
} else {
|
||||
type = SlotType.CRAFTING;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// Nothing to do, it's a CONTAINER slot
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue