Permalink
Browse files

Inventory#removeItem rather than Inventory#remove.

  • Loading branch information...
me4502 committed Jan 29, 2017
1 parent c75fe9f commit 87e1686b22733e7dca22727643aae4829eb698a8
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(new ItemStack(Material.BUCKET));
+ c.getInventory().removeItem(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 87e1686

Please sign in to comment.