Heap of bugfixes, cleanup and PHP 7 upgrades

This commit is contained in:
Dylan K. Taylor
2017-07-13 19:18:56 +01:00
parent c2a7c2c6cd
commit 2a7b736f18
49 changed files with 114 additions and 148 deletions

View File

@ -173,19 +173,19 @@ class SubChunk implements SubChunkInterface{
}
public function getBlockIdColumn(int $x, int $z) : string{
return substr($this->ids, (($x << 8) | ($z << 4)), 16);
return substr($this->ids, ($x << 8) | ($z << 4), 16);
}
public function getBlockDataColumn(int $x, int $z) : string{
return substr($this->data, (($x << 7) | ($z << 3)), 8);
return substr($this->data, ($x << 7) | ($z << 3), 8);
}
public function getBlockLightColumn(int $x, int $z) : string{
return substr($this->blockLight, (($x << 7) | ($z << 3)), 8);
return substr($this->blockLight, ($x << 7) | ($z << 3), 8);
}
public function getBlockSkyLightColumn(int $x, int $z) : string{
return substr($this->skyLight, (($x << 7) | ($z << 3)), 8);
return substr($this->skyLight, ($x << 7) | ($z << 3), 8);
}
public function getBlockIdArray() : string{