mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Added ItemFactory::air() sugar
This makes it easier to create air stacks without accidents, and also reduces the amount of throwaway air objects which get created.
This commit is contained in:
@ -1674,7 +1674,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$affectedBlocks = $target->getAffectedBlocks();
|
||||
|
||||
if($item === null){
|
||||
$item = ItemFactory::get(Item::AIR, 0, 0);
|
||||
$item = ItemFactory::air();
|
||||
}
|
||||
|
||||
$drops = [];
|
||||
|
Reference in New Issue
Block a user