From d0f743a99efcc4aedd9f81adc7514436139f5e7f Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 7 Jun 2015 20:15:30 +0200 Subject: [PATCH] Fixed /time add message, chunk tick reset default --- src/pocketmine/command/defaults/TimeCommand.php | 2 +- src/pocketmine/level/Level.php | 5 +---- src/pocketmine/resources/pocketmine.yml | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/pocketmine/command/defaults/TimeCommand.php b/src/pocketmine/command/defaults/TimeCommand.php index 8e4659492..570fd5ad4 100644 --- a/src/pocketmine/command/defaults/TimeCommand.php +++ b/src/pocketmine/command/defaults/TimeCommand.php @@ -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])); } diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 2aa6fd964..f7cd9c3db 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -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(); } diff --git a/src/pocketmine/resources/pocketmine.yml b/src/pocketmine/resources/pocketmine.yml index 11e8f6678..f0348aec1 100644 --- a/src/pocketmine/resources/pocketmine.yml +++ b/src/pocketmine/resources/pocketmine.yml @@ -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