From 150436f4c2db59747a0dbd4b85f52a828a612330 Mon Sep 17 00:00:00 2001 From: botn365 <42187820+botn365@users.noreply.github.com> Date: Sat, 19 Sep 2020 00:17:10 +0200 Subject: [PATCH] alow nbt reading from research station allow the reading of data sticks generated with the reasearch station --- .../li/cil/oc/integration/gregtech/ConverterDataStick.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/li/cil/oc/integration/gregtech/ConverterDataStick.scala b/src/main/scala/li/cil/oc/integration/gregtech/ConverterDataStick.scala index 922095ede..c0cc1a827 100644 --- a/src/main/scala/li/cil/oc/integration/gregtech/ConverterDataStick.scala +++ b/src/main/scala/li/cil/oc/integration/gregtech/ConverterDataStick.scala @@ -27,7 +27,7 @@ class ConverterDataStick extends Converter { .toArray[NBTTagString].map((tag: NBTTagString) => tag.func_150285_a_().split('\n')) case _ => } - else if (nbt.hasKey("author") && nbt.getString("author") == "Assembling Line Recipe Generator" && nbt.hasKey("output")) { + else if (nbt.hasKey("author") && nbt.getString("author").contains("Recipe Generator") && nbt.hasKey("output")) { val outputItem = ItemStack.loadItemStackFromNBT(nbt.getCompoundTag("output")) output += "output" -> outputItem.getDisplayName output += "time" -> nbt.getInteger("time").toString