mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 17:56:34 -04:00
Merge branch master-MC1.10 into master-MC1.11
This commit is contained in:
commit
edd4143f83
@ -58,6 +58,9 @@ class UpgradeCrafting(val host: EnvironmentHost with internal.Robot) extends Abs
|
|||||||
val cm = CraftingManager.getInstance
|
val cm = CraftingManager.getInstance
|
||||||
var countCrafted = 0
|
var countCrafted = 0
|
||||||
val originalCraft = cm.findMatchingRecipe(CraftingInventory, host.world)
|
val originalCraft = cm.findMatchingRecipe(CraftingInventory, host.world)
|
||||||
|
if (originalCraft == null) {
|
||||||
|
return Seq(false, 0)
|
||||||
|
}
|
||||||
breakable {
|
breakable {
|
||||||
while (countCrafted < wantedCount) {
|
while (countCrafted < wantedCount) {
|
||||||
val result = cm.findMatchingRecipe(CraftingInventory, host.world)
|
val result = cm.findMatchingRecipe(CraftingInventory, host.world)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user