mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Added index
This commit is contained in:
@@ -207,6 +207,7 @@ class Level{
|
|||||||
|
|
||||||
public function setBlockRaw(Vector3 $pos, Block $block){
|
public function setBlockRaw(Vector3 $pos, Block $block){
|
||||||
if(($ret = $this->level->setBlock($pos->x, $pos->y, $pos->z, $block->getID(), $block->getMetadata())) === true){
|
if(($ret = $this->level->setBlock($pos->x, $pos->y, $pos->z, $block->getID(), $block->getMetadata())) === true){
|
||||||
|
$i = ($pos->x >> 4).":".($pos->y >> 4).":".($pos->z >> 4);
|
||||||
if(!isset($this->changedBlocks[$i])){
|
if(!isset($this->changedBlocks[$i])){
|
||||||
$this->changedBlocks[$i] = array();
|
$this->changedBlocks[$i] = array();
|
||||||
$this->changedCount[$i] = 0;
|
$this->changedCount[$i] = 0;
|
||||||
|
Reference in New Issue
Block a user