mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 04:45:12 +00:00
Edit syntax to confirm with rest of document.
This commit is contained in:
parent
09ef1f1721
commit
987f54ba08
@ -776,9 +776,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
$target = $this->getBlock($vector);
|
$target = $this->getBlock($vector);
|
||||||
//TODO: Adventure mode checks
|
//TODO: Adventure mode checks
|
||||||
|
|
||||||
if($item == null){
|
if($item === null) $item = new Air();
|
||||||
$item = new Item(AIR);
|
|
||||||
}
|
|
||||||
|
|
||||||
if($player instanceof Player){
|
if($player instanceof Player){
|
||||||
$ev = new BlockBreakEvent($player, $target, $item, ($player->getGamemode() & 0x01) === 1 ? true : false);
|
$ev = new BlockBreakEvent($player, $target, $item, ($player->getGamemode() & 0x01) === 1 ? true : false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user