Made BlockUtils obay isAirBlock when creating an ItemStack

This commit is contained in:
Dylan Miller 2013-04-09 23:40:34 -07:00
parent 027a7006ff
commit 24185aabce

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