mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Improve BlockFactory initialization performance
as expected, expanding data range unconditionally resulted in some performance issues ...
This commit is contained in:
@ -30,6 +30,8 @@ use pocketmine\block\utils\PoweredByRedstoneTrait;
|
||||
class RedstoneLamp extends Opaque{
|
||||
use PoweredByRedstoneTrait;
|
||||
|
||||
public function getRequiredStateDataBits() : int{ return 1; }
|
||||
|
||||
protected function decodeState(BlockDataReader $r) : void{
|
||||
$this->powered = $r->readBool();
|
||||
}
|
||||
|
Reference in New Issue
Block a user