mirror of
https://github.com/Auxilor/EcoMenus.git
synced 2025-12-19 15:09:20 +00:00
CLeanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user