From 698193622adda852c5ae53c2b7d498d2001d99fe Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 16 Jun 2019 18:23:13 +0100 Subject: [PATCH] WorldManager: rename get/setAutoSaveTicks() to get/setAutoSaveInterval() this is less ambiguous. --- src/pocketmine/world/WorldManager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/world/WorldManager.php b/src/pocketmine/world/WorldManager.php index 55e0d1fbf..c9e881ad4 100644 --- a/src/pocketmine/world/WorldManager.php +++ b/src/pocketmine/world/WorldManager.php @@ -408,18 +408,18 @@ class WorldManager{ } /** - * Returns the period after which loaded worlds will be automatically saved to disk. + * Returns the period in ticks after which loaded worlds will be automatically saved to disk. * * @return int */ - public function getAutoSaveTicks() : int{ + public function getAutoSaveInterval() : int{ return $this->autoSaveTicks; } /** * @param int $autoSaveTicks */ - public function setAutoSaveTicks(int $autoSaveTicks) : void{ + public function setAutoSaveInterval(int $autoSaveTicks) : void{ if($autoSaveTicks <= 0){ throw new \InvalidArgumentException("Autosave ticks must be positive"); }