Fixed #1614, possible solution for #1678

This commit is contained in:
Shoghi Cervantes
2014-07-15 13:17:29 +02:00
parent 6e77901453
commit bd2cb4b851
5 changed files with 7 additions and 6 deletions

View File

@ -898,6 +898,7 @@ class Level implements ChunkManager, Metadatable{
}
if($player instanceof Player){
$ev = new BlockPlaceEvent($player, $hand, $block, $target, $item);
if(!$player->isOp() and ($distance = $this->server->getConfigInt("spawn-protection", 16)) > -1){