Permalink
Browse files

Fixed itemstack validity check in Pipes.

  • Loading branch information...
me4502 committed Nov 4, 2016
1 parent 1f22479 commit 7865c885eddc6aa703dd772b616a36036ac610ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/mechanics/pipe/Pipes.java
@@ -379,7 +379,7 @@ public void startPipe(Block block, List<ItemStack> items, boolean request) {
if (!items.isEmpty()) {
for (ItemStack item : items) {
- if (item == null) continue;
+ if (!ItemUtil.isStackValid(item)) continue;
block.getWorld().dropItem(BlockUtil.getBlockCentre(block), item);
}
} else juke.setPlaying(null);

0 comments on commit 7865c88

Please sign in to comment.