Fix allowSpectators not being used by filter
This commit is contained in:
parent
ffdb7f6f8f
commit
0f2c6f0e1e
@ -137,7 +137,7 @@ abstract class MatteryMenu(
|
|||||||
private val filters = ArrayList<Predicate<Player>>()
|
private val filters = ArrayList<Predicate<Player>>()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
filters.add { allowSpectators || !it.isSpectator }
|
filters.add { this.allowSpectators || !it.isSpectator }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun filter(predicate: Predicate<Player>): PlayerInput<V> {
|
fun filter(predicate: Predicate<Player>): PlayerInput<V> {
|
||||||
|
Loading…
Reference in New Issue
Block a user