fix popup code being invalid

This commit is contained in:
DBotThePony 2022-09-02 11:25:34 +07:00
parent 915f3821db
commit 4e2928dbc7
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -195,7 +195,7 @@ abstract class MatteryScreen<T : MatteryMenu>(menu: T, inventory: Inventory, tit
require(indexOf != -1) { "No such panel $panel" }
if (indexOf == panels.size - 1) {
if (indexOf == 0) {
return
}