From 0b9b1738b314af0d9562213da05d15c159ef96b7 Mon Sep 17 00:00:00 2001 From: Sjoerd Date: Thu, 27 Aug 2015 10:44:44 +0200 Subject: [PATCH] Block cache not cleared with a call to clearcache While trying to figure out Github and looking for a different bug I found this small bug in the code. The ClearCache function on Level.php did not correctly clear the blockcache. --- src/pocketmine/level/Level.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index f1881148e..b1d5ed97c 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -855,7 +855,7 @@ class Level implements ChunkManager, Metadatable{ } if(count($this->blockCache) > 2048){ - $this->chunkCache = []; + $this->blockCache = []; } }