mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
Fixed getNested() using cache desynchroinized from set()
This commit is contained in:
parent
cbef0e25a1
commit
a3ad5783b7
@ -367,6 +367,11 @@ class Config{
|
|||||||
*/
|
*/
|
||||||
public function set($k, $v = true){
|
public function set($k, $v = true){
|
||||||
$this->config[$k] = $v;
|
$this->config[$k] = $v;
|
||||||
|
foreach($this->nestedCache as $nestedKey => $nvalue){
|
||||||
|
if(substr($nestedKey, 0, strlen($k) + 1) === ($k . ".")){
|
||||||
|
unset($this->nestedCache($nestedKey));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user