Merge commit 'e80ad22702f87f4a006ab16af3b46baae0490856' into master

# Conflicts:
#	build/php
#	resources/vanilla
#	src/pocketmine/Player.php
#	tests/plugins/DevTools
This commit is contained in:
Dylan K. Taylor
2020-08-21 21:39:17 +01:00
2 changed files with 5 additions and 1 deletions

View File

@ -1562,6 +1562,9 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
$target = $this->getWorld()->getBlock($pos);
$ev = new PlayerInteractEvent($this, $this->inventory->getItemInHand(), $target, null, $face, PlayerInteractEvent::LEFT_CLICK_BLOCK);
if($this->isSpectator()){
$ev->setCancelled();
}
$ev->call();
if($ev->isCancelled()){
return false;