mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Entity velocity
This commit is contained in:
parent
0fa3dded89
commit
aef32f2012
3 changed files with 22 additions and 26 deletions
|
|
@ -85,6 +85,9 @@ class LevelAPI{
|
|||
}
|
||||
|
||||
public function setBlock($x, $y, $z, $block, $meta = 0, $update = true){
|
||||
if($x < 0 or $y < 0 or $z < 0){
|
||||
return false;
|
||||
}
|
||||
$this->map->setBlock($x, $y, $z, $block, $meta);
|
||||
$this->heightMap[$z][$x] = $this->map->getFloor($x, $z);
|
||||
if($this->server->api->dhandle("block.change", array(
|
||||
|
|
@ -99,6 +102,7 @@ class LevelAPI{
|
|||
$this->server->api->block->updateBlocksAround($x, $y, $z, BLOCK_UPDATE_NORMAL);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getOrderedChunk($X, $Z, $columnsPerPacket = 2){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue