Merge pull request #16 from botn365/patch-1

alow nbt reading from research station
This commit is contained in:
Martin Robertz 2020-09-19 16:10:53 +02:00 committed by GitHub
commit 150fbec4ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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