From 81be33462ff4147482342c407800973fb1405a28 Mon Sep 17 00:00:00 2001 From: Robert S Date: Tue, 16 Sep 2014 13:50:17 -0400 Subject: [PATCH] Fixed TileReactorCell crashing due to the use of scala break point --- .../atomic/machine/reactor/TileReactorCell.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/scala/resonantinduction/atomic/machine/reactor/TileReactorCell.scala b/src/main/scala/resonantinduction/atomic/machine/reactor/TileReactorCell.scala index 86d1e2221..750426eb0 100644 --- a/src/main/scala/resonantinduction/atomic/machine/reactor/TileReactorCell.scala +++ b/src/main/scala/resonantinduction/atomic/machine/reactor/TileReactorCell.scala @@ -32,7 +32,6 @@ import resonantinduction.core.Reference import universalelectricity.core.transform.vector.{Vector3, VectorWorld} import scala.collection.convert.wrapAll._ -import scala.util.control.Breaks._ /** The primary reactor component cell used to build reactors with. * @@ -108,7 +107,7 @@ class TileReactorCell extends TileInventory(Material.iron) with IMultiBlockStruc } else { - break //todo: break is not supported + return lowest; } checkPosition.y -= 1 } @@ -330,7 +329,7 @@ class TileReactorCell extends TileInventory(Material.iron) with IMultiBlockStruc } else { - break //todo: break is not supported + return vectors.toArray(new Array[Vector3](0)) } checkPosition.y += 1 }