mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-15 16:05:28 +00:00
Added index
This commit is contained in:
parent
95f2f347ff
commit
ae13512627
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user