Invalidate active context cache when a player changes world - closes #288
This commit is contained in:
@@ -62,6 +62,10 @@ public class ContextManager<T> {
|
||||
return cache.get(subject);
|
||||
}
|
||||
|
||||
public void invalidateCache(T subject){
|
||||
cache.invalidate(subject);
|
||||
}
|
||||
|
||||
public void registerCalculator(ContextCalculator<T> calculator) {
|
||||
// calculators registered first should have priority (and be checked last.)
|
||||
calculators.add(0, calculator);
|
||||
|
||||
Reference in New Issue
Block a user