Permalink
Browse files

Use the ItemStack remove method for Pump.

  • Loading branch information...
me4502 committed Jan 29, 2017
1 parent e6820ec commit 662f0427e96b3cdc0b7ece60f8a6d7dee6c7b02d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/mechanics/ic/gates/world/blocks/Pump.java
@@ -89,7 +89,7 @@ public boolean addToChest(Chest c, Block liquid) {
if (((Factory) getFactory()).buckets) {
if (c.getInventory().contains(Material.BUCKET)) {
- c.getInventory().remove(Material.BUCKET);
+ c.getInventory().remove(new ItemStack(Material.BUCKET));
if (c.getInventory().addItem(new ItemStack(parse(liquid.getType()) == Material.LAVA ? Material.LAVA_BUCKET : Material.WATER_BUCKET, 1)).isEmpty()) {
return true;
} else {

0 comments on commit 662f042

Please sign in to comment.