EntityPlayer entityPlayer = FMLClientHandler.instance().getClientPlayerEntity();
if (entityPlayer != null) {
Container container = entityPlayer.openContainer;
if (container != null) {
GuiScreen guiScreen = Minecraft.getMinecraft().currentScreen;
<BUG>TweakProvider<Container> provider = CraftingTweaks.instance.getProvider(container);
if (provider != null) {</BUG>
boolean isShiftDown = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
CraftingTweaks.ModSupportState config = CraftingTweaks.instance.getModSupportState(provider.getModId());
if (config == CraftingTweaks.ModSupportState.ENABLED || config == CraftingTweaks.ModSupportState.HOTKEYS_ONLY) {

EntityPlayer entityPlayer = FMLClientHandler.instance().getClientPlayerEntity();
if (entityPlayer != null) {
Container container = entityPlayer.openContainer;
if (container != null) {
GuiScreen guiScreen = Minecraft.getMinecraft().currentScreen;
TweakProvider<Container> provider = CraftingTweaks.instance.getProvider(container);
CompressType compressType = getCompressType(Keyboard.getEventKey());
if (provider != null) {
boolean isShiftDown = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
CraftingTweaks.ModSupportState config = CraftingTweaks.instance.getModSupportState(provider.getModId());
if (config == CraftingTweaks.ModSupportState.ENABLED || config == CraftingTweaks.ModSupportState.HOTKEYS_ONLY) {
