Improved Air block collision check

This commit is contained in:
Shoghi Cervantes
2014-08-24 15:55:34 +02:00
parent 4edadd764c
commit 214dcef1ea
3 changed files with 7 additions and 2 deletions

View File

@ -666,6 +666,7 @@ class Level implements ChunkManager, Metadatable{
$collides = [];
//TODO: optimize this loop, check collision cube boundaries
for($z = $minZ; $z < $maxZ; ++$z){
for($x = $minX; $x < $maxX; ++$x){
if($this->isChunkLoaded($x >> 4, $z >> 4)){