Block: add onPostPlace() hook

This commit is contained in:
Dylan K. Taylor
2019-05-27 17:30:57 +01:00
parent 11d21448fc
commit 28f3322337
3 changed files with 22 additions and 19 deletions

View File

@@ -1863,6 +1863,7 @@ class World implements ChunkManager, Metadatable{
//TODO: seal this up inside block placement
$tile->copyDataFromItem($item);
}
$hand->onPostPlace();
if($playSound){
$this->addSound($hand, new BlockPlaceSound($hand));