Opening/closing fence gates/trapdoors

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-24 19:59:57 +01:00
parent 28383deeee
commit 333035c285
2 changed files with 8 additions and 1 deletions

View File

@ -8,7 +8,6 @@ __Check Milestones [here](https://github.com/shoghicp/PocketMine-MP/issues/miles
## Alpha (full Creative)
- Random Chunk Updates
- Water/lava spread
- Opening/closing doors, fence gates, trapdoors (reflect it to all players)
- Fix spawn position resetting
- Correct block placement for beds
- Bonemeal use

View File

@ -206,6 +206,14 @@ class BlockAPI{
}
$cancelPlace = true;
break;
case 96: //Trapdoor
case 107: //Fence gates
$data["block"] = $target[0];
$data["meta"] = $target[1] ^ 0x04;
$this->server->trigger("player.block.update", $data);
$this->updateBlocksAround($data["x"], $data["y"], $data["z"], BLOCK_UPDATE_NORMAL);
$cancelPlace = true;
break;
default:
$cancelPlace = true;
break;