From 699c2890ca50f9b33ee8e228e544105754b0daca Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Fri, 17 Feb 2017 02:19:59 -0500 Subject: IList is now iterable. No more useless toIterable()s :) --- BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java b/BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java index 1a07cbb..1d132fa 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java +++ b/BJC-Utils2/src/main/java/bjc/utils/esodata/TapeChanger.java @@ -33,7 +33,7 @@ public class TapeChanger implements Tape { tapes.insertBefore(current); for(Tape tp : others) { - tapes.insertAfter(others); + tapes.insertAfter(tp); tapes.right(); } @@ -47,7 +47,7 @@ public class TapeChanger implements Tape { * @return The item the tape is on. */ public T item() { - if(currentTape == null) return false; + if(currentTape == null) return null; return currentTape.item(); } @@ -176,7 +176,7 @@ public class TapeChanger implements Tape { * @return Whether the cursor was moved right. */ public boolean right(int amt) { - if(currentTape == null) return; + if(currentTape == null) return false; return currentTape.right(amt); } @@ -198,7 +198,7 @@ public class TapeChanger implements Tape { @Override public boolean isDoubleSided() { - if(currentTape == null) return; + if(currentTape == null) return false; return currentTape.isDoubleSided(); } -- cgit v1.2.3