mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Config: drop packing of arrays
we don't handle arrays on decode, so there's no reason to support them on encode either.
This commit is contained in:
parent
32fd9879e5
commit
1be9b2f037
@ -529,8 +529,6 @@ class Config{
|
|||||||
foreach($this->config as $k => $v){
|
foreach($this->config as $k => $v){
|
||||||
if(is_bool($v)){
|
if(is_bool($v)){
|
||||||
$v = $v ? "on" : "off";
|
$v = $v ? "on" : "off";
|
||||||
}elseif(is_array($v)){
|
|
||||||
$v = implode(";", $v);
|
|
||||||
}
|
}
|
||||||
$content .= $k . "=" . $v . "\r\n";
|
$content .= $k . "=" . $v . "\r\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user