forked from Ad5001/BetterGen
Fixed typo which results in creash when "delBio" option is specified during level generation.
This commit is contained in:
parent
1a76db0b59
commit
1cc8c924af
1 changed files with 2 additions and 2 deletions
|
@ -414,7 +414,7 @@ class BetterNormal extends Generator {
|
||||||
self::$options["preset"] = $options["preset"];
|
self::$options["preset"] = $options["preset"];
|
||||||
$options = (array) json_decode($options["preset"]);
|
$options = (array) json_decode($options["preset"]);
|
||||||
if(isset($options["delBio"])) {
|
if(isset($options["delBio"])) {
|
||||||
if(is_string($options["de"])) $options["delBio"] = explode(",", $options["delBio"]);
|
if(is_string($options["delBio"])) $options["delBio"] = explode(",", $options["delBio"]);
|
||||||
if(count($options["delBio"]) !== 0) {
|
if(count($options["delBio"]) !== 0) {
|
||||||
self::$options["delBio"] = $options["delBio"];
|
self::$options["delBio"] = $options["delBio"];
|
||||||
}
|
}
|
||||||
|
@ -503,4 +503,4 @@ class BetterNormal extends Generator {
|
||||||
|
|
||||||
return ++$y;
|
return ++$y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue