Don't merge stacks for AL recipes (#10)

* Don't merge stacks for AL recipes

* use WILDCARD_VALUE
This commit is contained in:
miozune authored and GitHub committed 2022-05-25 23:48:48 +02:00
1 parent 86ce155d07
commit 71bc78fa20
4 files changed
+19 -13

No files matched your search

@@ -36,6 +36,7 @@ import net.minecraft.nbt.CompressedStreamTools;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraftforge.client.event.GuiScreenEvent;
import net.minecraftforge.oredict.OreDictionary;
import org.lwjgl.input.Keyboard;
import java.io.ByteArrayOutputStream;
@@ -109,8 +110,7 @@ public class NEECraftingHelper implements IOverlayHandler {
}
}
//Fix ItemStack with wrong meta
if (stack.getItemDamage() == 32767) {
if (stack.getItemDamage() == OreDictionary.WILDCARD_VALUE) {
stack.setItemDamage(0);
}