diff --git a/TODO.md b/TODO.md index bca990f1..8bbe1dd1 100644 --- a/TODO.md +++ b/TODO.md @@ -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 diff --git a/classes/API/BlockAPI.php b/classes/API/BlockAPI.php index 9a0db9e4..51a02470 100644 --- a/classes/API/BlockAPI.php +++ b/classes/API/BlockAPI.php @@ -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;