From 15c9b7214d1fee17c6608ae22f8e52f8b2019f25 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 3 Jun 2013 23:26:47 +0200 Subject: [PATCH] Fixed crash at unload --- src/world/Level.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/world/Level.php b/src/world/Level.php index 100902ac..9bb37ac6 100644 --- a/src/world/Level.php +++ b/src/world/Level.php @@ -127,6 +127,9 @@ class Level{ } public function save($force = false){ + if(!isset($this->level)){ + return false; + } if($this->server->saveEnabled === false and $force === false){ return; }