Fix allowSpectators not being used by filter

This commit is contained in:
DBotThePony 2025-03-01 11:13:33 +07:00
parent ffdb7f6f8f
commit 0f2c6f0e1e
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -137,7 +137,7 @@ abstract class MatteryMenu(
private val filters = ArrayList<Predicate<Player>>()
init {
filters.add { allowSpectators || !it.isSpectator }
filters.add { this.allowSpectators || !it.isSpectator }
}
fun filter(predicate: Predicate<Player>): PlayerInput<V> {