Merge pull request #1777 from Striker209MPE/patch-5

Fixed an error related to AIR constant
This commit is contained in:
William Teder 2014-07-25 07:51:27 -05:00
commit 03a970e91f

View File

@ -776,7 +776,7 @@ class Level implements ChunkManager, Metadatable{
$target = $this->getBlock($vector);
//TODO: Adventure mode checks
if($item === null) $item = new Air();
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);