mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
Fixed disable-block-ticking pocketmine.yml config not working
This commit is contained in:
parent
769f3f75cd
commit
6adc813a7f
@ -352,7 +352,8 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
$this->chunkPopulationQueueSize = (int) $this->server->getProperty("chunk-generation.population-queue-size", 2);
|
$this->chunkPopulationQueueSize = (int) $this->server->getProperty("chunk-generation.population-queue-size", 2);
|
||||||
$this->clearChunksOnTick = (bool) $this->server->getProperty("chunk-ticking.clear-tick-list", true);
|
$this->clearChunksOnTick = (bool) $this->server->getProperty("chunk-ticking.clear-tick-list", true);
|
||||||
|
|
||||||
$dontTickBlocks = $this->server->getProperty("chunk-ticking.disable-block-ticking", []);
|
$dontTickBlocks = array_fill_keys($this->server->getProperty("chunk-ticking.disable-block-ticking", []), true);
|
||||||
|
|
||||||
$this->randomTickBlocks = new \SplFixedArray(256);
|
$this->randomTickBlocks = new \SplFixedArray(256);
|
||||||
foreach($this->randomTickBlocks as $id => $null){
|
foreach($this->randomTickBlocks as $id => $null){
|
||||||
$block = BlockFactory::get($id); //Make sure it's a copy
|
$block = BlockFactory::get($id); //Make sure it's a copy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user