Merge branch master-MC1.10 into master-MC1.11

This commit is contained in:
payonel 2018-02-21 20:08:23 -08:00
commit edd4143f83

View File

@ -58,6 +58,9 @@ class UpgradeCrafting(val host: EnvironmentHost with internal.Robot) extends Abs
val cm = CraftingManager.getInstance
var countCrafted = 0
val originalCraft = cm.findMatchingRecipe(CraftingInventory, host.world)
if (originalCraft == null) {
return Seq(false, 0)
}
breakable {
while (countCrafted < wantedCount) {
val result = cm.findMatchingRecipe(CraftingInventory, host.world)