From 0f2c6f0e1eec63d52c59c91fa1ddf9452f5d5c72 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 1 Mar 2025 11:13:33 +0700 Subject: [PATCH] Fix allowSpectators not being used by filter --- src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt index 5c7ed9174..674e64ea6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/menu/MatteryMenu.kt @@ -137,7 +137,7 @@ abstract class MatteryMenu( private val filters = ArrayList>() init { - filters.add { allowSpectators || !it.isSpectator } + filters.add { this.allowSpectators || !it.isSpectator } } fun filter(predicate: Predicate): PlayerInput {