mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Merge branch 'stable'
This commit is contained in:
@ -464,8 +464,12 @@ class SimpleSessionHandler extends SessionHandler{
|
||||
throw new BadPacketException("Invalid sign text update: " . $e->getMessage(), 0, $e);
|
||||
}
|
||||
|
||||
if(!$block->updateText($this->player, $text)){
|
||||
$this->player->getLevel()->sendBlocks([$this->player], [$block]);
|
||||
try{
|
||||
if(!$block->updateText($this->player, $text)){
|
||||
$this->player->getLevel()->sendBlocks([$this->player], [$block]);
|
||||
}
|
||||
}catch(\UnexpectedValueException $e){
|
||||
throw new BadPacketException($e->getMessage(), 0, $e);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user