From 1b84340e3f0994560453b30fce0f3e1ca227bbd5 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 18 Apr 2015 22:35:00 +0200 Subject: [PATCH] Improved manager --- src/pocketmine/MemoryManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/MemoryManager.php b/src/pocketmine/MemoryManager.php index 156608488..0f6f6cbfa 100644 --- a/src/pocketmine/MemoryManager.php +++ b/src/pocketmine/MemoryManager.php @@ -125,12 +125,12 @@ class MemoryManager{ if($this->lowMemory and $this->continuousTrigger){ if(++$this->continuousTriggerTicker >= $this->continuousTriggerRate){ $this->continuousTriggerTicker = 0; - $this->trigger($memory[$trigger], $this->memoryLimit, ++$this->continuousTriggerCount); + $this->trigger($memory[$trigger], $this->memoryLimit, $trigger > 0, ++$this->continuousTriggerCount); } }else{ $this->lowMemory = true; $this->continuousTriggerCount = 0; - $this->trigger($memory[$trigger], $this->memoryLimit); + $this->trigger($memory[$trigger], $this->memoryLimit, $trigger > 0); } }else{ $this->lowMemory = false;