Permalink
Browse files

Fixed jukebox and pipe interoperability.

  • Loading branch information...
me4502 committed Aug 29, 2017
1 parent 8533831 commit 3ea6bb687763db84f1ae78ff579f5ea05bccf4d2
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/com/sk89q/craftbook/mechanics/pipe/Pipes.java
@@ -246,6 +246,7 @@ else if (off.getType() == Material.THIN_GLASS || off.getType() == Material.STAIN
ItemStack st = iter.next();
if (!st.getType().isRecord()) continue;
juke.setPlaying(st.getType());
juke.update();
iter.remove();
break;
}
@@ -429,7 +430,10 @@ private void startPipe(Block block, List<ItemStack> items, boolean request) {
if (!ItemUtil.isStackValid(item)) continue;
block.getWorld().dropItem(BlockUtil.getBlockCentre(block), item);
}
} else juke.setPlaying(Material.AIR);
} else {
juke.setPlaying(Material.AIR);
juke.update();
}
}
} else {
PipeSuckEvent event = new PipeSuckEvent(block, new ArrayList<>(items), fac);

0 comments on commit 3ea6bb6

Please sign in to comment.