package RebornStorage.client;

import com.raoulvdberge.refinedstorage.item.ItemPattern;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;

import javax.annotation.Nullable;

/**
 * Created by Gigabit101 on 06/01/2017.
 */
public class SlotFiltered extends Slot {
	public SlotFiltered(IInventory inventoryIn, int index, int xPosition, int yPosition) {
		super(inventoryIn, index, xPosition, yPosition);
	}

	@Override
	public boolean isItemValid(
		@Nullable
			ItemStack stack) {
		if (stack.getItem() instanceof ItemPattern) {
			return true;
		}
		return false;
	}
}

@@ -24,16 +24,98 @@
 lient;%0A%0A
+import com.raoulvdberge.refinedstorage.api.autocrafting.ICraftingPatternProvider;%0A
 import c
@@ -628,16 +628,36 @@
 %7B%0A%09%09if (
+!stack.isEmpty() && 
 stack.ge
@@ -676,26 +676,39 @@
 anceof I
-temPattern
+CraftingPatternProvider
 ) %7B%0A%09%09%09r

Fix #58