mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Opening/closing fence gates/trapdoors
This commit is contained in:
parent
28383deeee
commit
333035c285
1
TODO.md
1
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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user