Fixed setBiomeColor() bug

This commit is contained in:
Shoghi Cervantes 2014-06-16 01:20:53 +02:00
parent a371890962
commit 36ddbc6cb4

View File

@ -206,7 +206,7 @@ abstract class BaseChunk implements Chunk{
}
public function setBiomeColor($x, $z, $R, $G, $B){
$this->biomeColors = 0xFF000000 | (($R & 0xFF) << 16) | (($G & 0xFF) << 8) | ($B & 0xFF);
$this->biomeColors[($z << 4) + $x] = 0xFF000000 | (($R & 0xFF) << 16) | (($G & 0xFF) << 8) | ($B & 0xFF);
}
public function getHighestBlockAt($x, $z){