mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Merge commit '92a752053df598e5fe9366601bef070d967374fc'
# Conflicts: # resources/vanilla # src/pocketmine/tile/Banner.php # src/pocketmine/tile/Sign.php # src/pocketmine/tile/Tile.php
This commit is contained in:
commit
1ae7960fc4
@ -43,6 +43,9 @@ class Sign extends Spawnable{
|
|||||||
public const TAG_TEXT_BLOB = "Text";
|
public const TAG_TEXT_BLOB = "Text";
|
||||||
public const TAG_TEXT_LINE = "Text%d"; //sprintf()able
|
public const TAG_TEXT_LINE = "Text%d"; //sprintf()able
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string[]
|
||||||
|
*/
|
||||||
public static function fixTextBlob(string $blob) : array{
|
public static function fixTextBlob(string $blob) : array{
|
||||||
return array_slice(array_pad(explode("\n", $blob), 4, ""), 0, 4);
|
return array_slice(array_pad(explode("\n", $blob), 4, ""), 0, 4);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user