Fixed /time add message, chunk tick reset default

This commit is contained in:
Shoghi Cervantes 2015-06-07 20:15:30 +02:00
parent cbb1c55a06
commit d0f743a99e
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89
3 changed files with 3 additions and 6 deletions

View File

@ -128,7 +128,7 @@ class TimeCommand extends VanillaCommand{
$level->setTime($level->getTime() + $value);
$level->checkTime();
}
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.time.add", [$value]));
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.time.added", [$value]));
}else{
$sender->sendMessage(new TranslationContainer("commands.generic.usage", [$this->usageMessage]));
}

View File

@ -344,7 +344,7 @@ class Level implements ChunkManager, Metadatable{
$this->chunkGenerationQueueSize = (int) $this->server->getProperty("chunk-generation.queue-size", 8);
$this->chunkPopulationQueueSize = (int) $this->server->getProperty("chunk-generation.population-queue-size", 2);
$this->chunkTickList = [];
$this->clearChunksOnTick = (bool) $this->server->getProperty("chunk-ticking.clear-tick-list", false);
$this->clearChunksOnTick = (bool) $this->server->getProperty("chunk-ticking.clear-tick-list", true);
$this->cacheChunks = (bool) $this->server->getProperty("chunk-sending.cache-chunks", false);
$this->timings = new LevelTimings($this);
@ -847,9 +847,6 @@ class Level implements ChunkManager, Metadatable{
unset($this->chunkTickList[$index]);
}
foreach($chunk->getEntities() as $entity){
$entity->scheduleUpdate();
}

View File

@ -116,7 +116,7 @@ chunk-ticking:
#Radius of chunks around a player to tick
tick-radius: 3
light-updates: false
clear-tick-list: false
clear-tick-list: true
chunk-generation:
#Max. amount of chunks in the waiting queue to be generated