From fbf897d1be61752d78d9695ae17297b863908624 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 5 Jun 2013 12:20:57 +0200 Subject: [PATCH] Fixed level event duplication on some cases --- src/world/Level.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/world/Level.php b/src/world/Level.php index 57816829f..7a2f1aafe 100644 --- a/src/world/Level.php +++ b/src/world/Level.php @@ -68,6 +68,9 @@ class Level{ } public function checkThings(){ + if(!isset($this->level){ + return false; + } $this->players = $this->server->api->player->getAll($this); $now = microtime(true); $time = $this->startTime + ($now - $this->startCheck) * 20;