mirror of
https://github.com/Auxilor/EcoMenus.git
synced 2025-12-19 15:09:20 +00:00
CLeanup
This commit is contained in:
@@ -82,11 +82,9 @@ fun buildMenu(plugin: EcoPlugin, menu: EcoMenu, config: Config): Menu {
|
|||||||
setMask(mask)
|
setMask(mask)
|
||||||
|
|
||||||
for (slot in slots) {
|
for (slot in slots) {
|
||||||
if (slot.page != null && pageNumber != slot.page) {
|
if (slot.page == null || pageNumber == slot.page) {
|
||||||
continue
|
slot.add(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
slot.add(this)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user