mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Level: Make sleepTicks private, don't write directly
This commit is contained in:
@ -223,7 +223,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
private $blockStates;
|
||||
|
||||
/** @var int */
|
||||
public $sleepTicks = 0;
|
||||
private $sleepTicks = 0;
|
||||
|
||||
/** @var int */
|
||||
private $chunkTickRadius;
|
||||
@ -838,6 +838,10 @@ class Level implements ChunkManager, Metadatable{
|
||||
}
|
||||
}
|
||||
|
||||
public function setSleepTicks(int $ticks) : void{
|
||||
$this->sleepTicks = $ticks;
|
||||
}
|
||||
|
||||
public function sendBlockExtraData(int $x, int $y, int $z, int $id, int $data, array $targets = null){
|
||||
$pk = new LevelEventPacket;
|
||||
$pk->evid = LevelEventPacket::EVENT_SET_DATA;
|
||||
|
Reference in New Issue
Block a user