mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 03:25:19 +01:00
Properly implement ContextManager#unregisterCalculator (#1422)
This commit is contained in:
parent
dae64fc8c4
commit
4ef3d50965
@ -110,7 +110,7 @@ public class ApiContextManager implements me.lucko.luckperms.api.context.Context
|
||||
@Override
|
||||
public void unregisterCalculator(@NonNull ContextCalculator<?> calculator) {
|
||||
Objects.requireNonNull(calculator, "calculator");
|
||||
|
||||
this.handle.unregisterCalculator(calculator);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -190,7 +190,7 @@ public abstract class ContextManager<T> {
|
||||
protected Contexts calculate(T subject) {
|
||||
MutableContextSet accumulator = MutableContextSet.create();
|
||||
|
||||
for (ContextCalculator<? super T> calculator : ContextManager.this.calculators) {
|
||||
for (ContextCalculator<? super T> calculator : this.calculators) {
|
||||
try {
|
||||
MutableContextSet ret = calculator.giveApplicableContext(subject, accumulator);
|
||||
if (ret == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user