A little care taken for scanning a keyset

This commit is contained in:
tmcgeorge committed 2013-11-09 12:39:38 -06:00
1 parent aeb7671387
commit 5f9cb06963
1 file changed
+3 -1
@@ -680,8 +680,10 @@ public class SignalBusLogic extends MultiblockBaseLogic implements IActiveLogic,
public void notifyBreak ()
{
CoordTuple[] scan = new CoordTuple[transceivers.keySet().size()];
scan = transceivers.keySet().toArray(scan);
TileEntity te;
for (CoordTuple coord : transceivers.keySet())
for (CoordTuple coord : scan)
{
te = worldObj.getBlockTileEntity(coord.x, coord.y, coord.z);
if (te instanceof ISignalTransceiver)