Fixed typo which results in creash when "delBio" option is specified during level generation.

This commit is contained in:
fyvekatz 2018-06-28 21:48:35 -04:00
parent 1a76db0b59
commit 1cc8c924af

View file

@ -414,7 +414,7 @@ class BetterNormal extends Generator {
self::$options["preset"] = $options["preset"];
$options = (array) json_decode($options["preset"]);
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) {
self::$options["delBio"] = $options["delBio"];
}