Made BlockUtils obay isAirBlock when creating an ItemStack
This commit is contained in:
parent
027a7006ff
commit
24185aabce
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