Flatten wall_banner and wall_sign into single blocks (#2798)

This comes with some problems, but the problems are more bearable than the previous code.
This commit is contained in:
Dylan T
2019-03-08 16:37:26 +00:00
committed by GitHub
parent bb718faa2e
commit 8f1bc5d497
11 changed files with 71 additions and 143 deletions

View File

@ -24,7 +24,7 @@ declare(strict_types=1);
namespace pocketmine\network\mcpe\handler;
use pocketmine\block\ItemFrame;
use pocketmine\block\SignPost;
use pocketmine\block\Sign;
use pocketmine\block\utils\SignText;
use pocketmine\inventory\transaction\action\InventoryAction;
use pocketmine\inventory\transaction\CraftingTransaction;
@ -403,7 +403,7 @@ class SimpleSessionHandler extends SessionHandler{
throw new BadPacketException($e->getMessage(), 0, $e);
}
if($block instanceof SignPost){
if($block instanceof Sign){
if($nbt->hasTag("Text", StringTag::class)){
try{
$text = SignText::fromBlob($nbt->getString("Text"));