mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Use correct syntax
This commit is contained in:
parent
677071e7cb
commit
f93d5339bc
@ -776,7 +776,9 @@ class Level implements ChunkManager, Metadatable{
|
||||
$target = $this->getBlock($vector);
|
||||
//TODO: Adventure mode checks
|
||||
|
||||
if($item === null) $item = Item::get(Item::AIR, 0, 0);
|
||||
if($item === null){
|
||||
$item = Item::get(Item::AIR, 0, 0);
|
||||
}
|
||||
|
||||
if($player instanceof Player){
|
||||
$ev = new BlockBreakEvent($player, $target, $item, ($player->getGamemode() & 0x01) === 1 ? true : false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user