mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Allow condition cache to be cleared
This commit is contained in:
@@ -108,6 +108,12 @@ impl State {
|
||||
.collect();
|
||||
self
|
||||
}
|
||||
|
||||
pub fn clear_condition_cache(
|
||||
&mut self,
|
||||
) -> Result<(), PoisonError<RwLockWriteGuard<HashMap<Function, bool>>>> {
|
||||
self.condition_cache.write().map(|mut c| c.clear())
|
||||
}
|
||||
}
|
||||
|
||||
/// Compound conditions joined by 'or'
|
||||
|
||||
Reference in New Issue
Block a user