mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Chunk: Fixed possible bug with Chunk->setBlockData()
to be honest this would probably never affect anything, but let's be consistent.
This commit is contained in:
parent
b93691a177
commit
256527c953
@ -249,7 +249,7 @@ class Chunk{
|
||||
* @param int $data 0-15
|
||||
*/
|
||||
public function setBlockData(int $x, int $y, int $z, int $data){
|
||||
if($this->getSubChunk($y >> 4)->setBlockData($x, $y & 0x0f, $z, $data)){
|
||||
if($this->getSubChunk($y >> 4, true)->setBlockData($x, $y & 0x0f, $z, $data)){
|
||||
$this->hasChanged = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user