From 52c55e3db6c7e10ba12763d7e1cd7debef4c4064 Mon Sep 17 00:00:00 2001 From: payonel Date: Mon, 1 Oct 2018 00:35:20 -0700 Subject: [PATCH] split the eeprom crafting stack to 1 drones, mcus, robots, and tablets can be crafted with an eeprom the code was erroneously inserting an entire eeprom stack into the device, while leaving the crafting grid with n-1 of the stack, thus duplicating a lot of eeproms :) closes #2800 --- src/main/scala/li/cil/oc/common/recipe/ExtendedRecipe.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/li/cil/oc/common/recipe/ExtendedRecipe.scala b/src/main/scala/li/cil/oc/common/recipe/ExtendedRecipe.scala index e167a61da..77aa18796 100644 --- a/src/main/scala/li/cil/oc/common/recipe/ExtendedRecipe.scala +++ b/src/main/scala/li/cil/oc/common/recipe/ExtendedRecipe.scala @@ -210,7 +210,7 @@ object ExtendedRecipe { // Insert new EEPROM. for (stack <- getItems(inventory)) { if (api.Items.get(stack) == eeprom) { - data.components :+= stack + data.components :+= stack.copy.splitStack(1) } }