New Player::directBigRawPacket() method

This commit is contained in:
Shoghi Cervantes Pueyo
2013-05-19 02:50:04 +02:00
parent db97c0c5f7
commit 295363a381
5 changed files with 82 additions and 29 deletions

View File

@ -30,4 +30,26 @@ class WaterBlock extends LiquidBlock{
parent::__construct(WATER, $meta, "Water");
}
public function onUpdate($type){
return false;
$level = $this->meta & 0x03;
if($type !== BLOCK_UPDATE_NORMAL or $level === 0){
return false;
}
$falling = $this->meta >> 3;
$down = $this->getSide(0);
if($down->isFlowable){
$this->level->setBlock($down, new WaterBlock(9), true); //1001
return;
}elseif($down instanceof WaterBlock and $down->getMetadata() === 9){
$level = 1;
}
$up = $this->getSide(1);
if($up instanceof WaterBlock){
}
}
}