PMF & Multiworld [part 2]

This commit is contained in:
Shoghi Cervantes Pueyo
2013-05-14 19:25:55 +02:00
parent 9b212ae034
commit 5938747083
39 changed files with 239 additions and 301 deletions

View File

@ -244,7 +244,7 @@ class Entity extends Position{
for($y = $startY; $y <= $endY; ++$y){
for($x = $startX; $x <= $endX; ++$x){
for($z = $startZ; $z <= $endZ; ++$z){
$b = $this->server->api->block->getBlock(new Vector3($x, $y, $z));
$b = $this->level->getBlock(new Vector3($x, $y, $z));
switch($b->getID()){
case WATER:
case STILL_WATER: //Drowing
@ -316,7 +316,7 @@ class Entity extends Position{
for($x = $startX; $x <= $endX; ++$x){
$v = new Vector3($x, $y, $z);
if($this->isSupport($v)){
$b = $this->server->api->block->getBlock($v);
$b = $this->level->getBlock($v);
if($b->isFlowable !== true){
$support = true;
break;

View File

@ -134,6 +134,7 @@ class TileEntity extends Position{
switch($this->class){
case TILE_SIGN:
$player->dataPacket(MC_SIGN_UPDATE, array(
"level" => $this->level,
"x" => $this->x,
"y" => $this->y,
"z" => $this->z,