From 24185aabce8f628c2064a26655012ad0a40b4c3c Mon Sep 17 00:00:00 2001 From: Dylan Miller Date: Tue, 9 Apr 2013 23:40:34 -0700 Subject: [PATCH 1/2] Made BlockUtils obay isAirBlock when creating an ItemStack --- common/buildcraft/core/utils/BlockUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/buildcraft/core/utils/BlockUtil.java b/common/buildcraft/core/utils/BlockUtil.java index 8e6809ad..522b0660 100644 --- a/common/buildcraft/core/utils/BlockUtil.java +++ b/common/buildcraft/core/utils/BlockUtil.java @@ -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); From 4e74b295eb55de87798b4d6d7540cb90aa46161e Mon Sep 17 00:00:00 2001 From: Dylan Miller Date: Tue, 9 Apr 2013 23:43:36 -0700 Subject: [PATCH 2/2] Forgot a closing parenthesis --- common/buildcraft/core/utils/BlockUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/buildcraft/core/utils/BlockUtil.java b/common/buildcraft/core/utils/BlockUtil.java index 522b0660..b5ece2d6 100644 --- a/common/buildcraft/core/utils/BlockUtil.java +++ b/common/buildcraft/core/utils/BlockUtil.java @@ -32,7 +32,7 @@ public class BlockUtil { if (block == null) return null; - if (block.isAirBlock(world, i, j, k) + if (block.isAirBlock(world, i, j, k)) return null; int meta = world.getBlockMetadata(i, j, k);