Fix withdrawing from brewery taking two items at a time

This commit is contained in:
Vincent Lee committed 2018-09-02 21:33:15 -05:00
1 parent a144f4fb29
commit 0b526c1b31
1 file changed
+3 -1
@@ -87,8 +87,10 @@ public class BlockBrewery extends BlockMod implements ILexiconable, IWandHUD {
TileBrewery brew = (TileBrewery) world.getTileEntity(pos);
if(player.isSneaking()) {
if(brew.recipe == null && !state.getValue(BotaniaStateProps.POWERED))
if(brew.recipe == null && !state.getValue(BotaniaStateProps.POWERED)) {
InventoryHelper.withdrawFromInventory(brew, player);
return true;
}
} else {
ItemStack stack = player.getHeldItem(hand);
if(!stack.isEmpty())