From ae135126278a14457730ae5a017075361473b184 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sun, 19 May 2013 23:03:59 +0200 Subject: [PATCH] Added index --- src/world/Level.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/world/Level.php b/src/world/Level.php index ef51dc7eef..f6967d6e41 100644 --- a/src/world/Level.php +++ b/src/world/Level.php @@ -207,6 +207,7 @@ class Level{ public function setBlockRaw(Vector3 $pos, Block $block){ if(($ret = $this->level->setBlock($pos->x, $pos->y, $pos->z, $block->getID(), $block->getMetadata())) === true){ + $i = ($pos->x >> 4).":".($pos->y >> 4).":".($pos->z >> 4); if(!isset($this->changedBlocks[$i])){ $this->changedBlocks[$i] = array(); $this->changedCount[$i] = 0;