mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 03:47:16 +00:00
Merge #3489: fix spawn protection check for placement checking the wrong block, close #3488, close #3489
This commit is contained in:
parent
0847358070
commit
ad2a39bf13
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user