Updated Normal generator

This commit is contained in:
Shoghi Cervantes
2014-06-11 00:29:01 +02:00
parent 109b6dbf44
commit b6ef52e89c
5 changed files with 28 additions and 27 deletions

View File

@ -80,7 +80,8 @@ class Ore{
$sizeZ *= $sizeZ;
if(($sizeX + $sizeY + $sizeZ) < 1 and $level->getBlockIdAt($x, $y, $z) === 1){
$level->setBlockIdAt($x, $y, $z, $this->type->material);
$level->setBlockIdAt($x, $y, $z, $this->type->material->getID());
$level->setBlockDataAt($x, $y, $z, $this->type->material->getDamage());
}
}
}