Merge pull request #737 from dmillerw/master
Simple change to make BlockUtils consider isAirBlock when creating an ItemStack for a block.
This commit is contained in:
commit
08f0216be7
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ public class BlockUtil {
|
|||
if (block == null)
|
||||
return null;
|
||||
|
||||
if (block.isAirBlock(world, i, j, k))
|
||||
return null;
|
||||
|
||||
int meta = world.getBlockMetadata(i, j, k);
|
||||
|
||||
return block.getBlockDropped(world, i, j, k, meta, 0);
|
||||
|
|
Loading…
Reference in a new issue