Merge #3489: fix spawn protection check for placement checking the wrong block, close #3488, close #3489

This commit is contained in:
Kevin 2020-05-11 18:59:23 -04:00 committed by Dylan K. Taylor
parent 0847358070
commit ad2a39bf13

View File

@ -1909,7 +1909,7 @@ class Level implements ChunkManager, Metadatable{
if($player !== null){
$ev = new BlockPlaceEvent($player, $hand, $blockReplace, $blockClicked, $item);
if($this->checkSpawnProtection($player, $blockClicked)){
if($this->checkSpawnProtection($player, $blockReplace)){
$ev->setCancelled();
}