populate missing array value types in tile namespace

This commit is contained in:
Dylan K. Taylor
2020-01-30 21:20:42 +00:00
parent 0537c66849
commit 92a752053d
3 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,9 @@ class Sign extends Spawnable{
public const TAG_TEXT_BLOB = "Text";
public const TAG_TEXT_LINE = "Text%d"; //sprintf()able
/**
* @return string[]
*/
private static function fixTextBlob(string $blob) : array{
return array_slice(array_pad(explode("\n", $blob), 4, ""), 0, 4);
}