mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Do not mutate the result of Permission->getChildren()
This commit is contained in:
@@ -116,4 +116,9 @@ class Permission{
|
||||
$p->recalculatePermissions();
|
||||
}
|
||||
}
|
||||
|
||||
public function addChild(string $name, bool $value) : void{
|
||||
$this->children[$name] = $value;
|
||||
$this->recalculatePermissibles();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user