9
0
mirror of https://github.com/Auxilor/EcoMenus.git synced 2025-12-19 15:09:20 +00:00
This commit is contained in:
Auxilor
2023-06-05 14:48:21 +01:00
parent 8df0e5ca8d
commit ced62199ae

View File

@@ -82,14 +82,12 @@ fun buildMenu(plugin: EcoPlugin, menu: EcoMenu, config: Config): Menu {
setMask(mask)
for (slot in slots) {
if (slot.page != null && pageNumber != slot.page) {
continue
}
if (slot.page == null || pageNumber == slot.page) {
slot.add(this)
}
}
}
}
onClose { event, _ ->
menu.handleClose(event.player as Player)