mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-25 23:07:09 +00:00
Merge branch '3.7'
This commit is contained in:
commit
9ad7f74501
@ -104,7 +104,7 @@ class Flat extends Generator{
|
|||||||
$split = array_map('\trim', explode(',', $layers));
|
$split = array_map('\trim', explode(',', $layers));
|
||||||
$y = 0;
|
$y = 0;
|
||||||
foreach($split as $line){
|
foreach($split as $line){
|
||||||
preg_match('#^(?:(\d+)x)?(.+)$#', $line, $matches);
|
preg_match('#^(?:(\d+)[x|*])?(.+)$#', $line, $matches);
|
||||||
if(count($matches) !== 3){
|
if(count($matches) !== 3){
|
||||||
throw new InvalidGeneratorOptionsException("Invalid preset layer \"$line\"");
|
throw new InvalidGeneratorOptionsException("Invalid preset layer \"$line\"");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user