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:
Flow86 2013-04-10 23:35:59 -07:00
commit 08f0216be7

View file

@ -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);