mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
Use correct SlotType's for merchants. Fixes BUKKIT-2257
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
73cf129db7
commit
c0ce2ea3a1
1 changed files with 7 additions and 0 deletions
|
@ -102,6 +102,13 @@ public class CraftInventoryView extends InventoryView {
|
||||||
type = SlotType.CRAFTING;
|
type = SlotType.CRAFTING;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MERCHANT:
|
||||||
|
if (slot == 2) {
|
||||||
|
type = SlotType.RESULT;
|
||||||
|
} else {
|
||||||
|
type = SlotType.CRAFTING;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// Nothing to do, it's a CONTAINER slot
|
// Nothing to do, it's a CONTAINER slot
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue