diff --git a/util/item/ItemList.java b/util/item/ItemList.java index 18a93da2..d4b9a6ce 100644 --- a/util/item/ItemList.java +++ b/util/item/ItemList.java @@ -156,7 +156,7 @@ public final class ItemList implements IItemList implements Iterator -{ - - final Iterator parent; - private StackType next; - - public MeanfulIterator(Iterator iterator) { - parent = iterator; - } - - @Override - public boolean hasNext() - { - while (parent.hasNext()) - { - next = parent.next(); - if ( next.isMeaningful() ) - return true; - else - parent.remove(); // self cleaning :3 - } - - return false; - } - - @Override - public Object next() - { - return next; - } - - @Override - public void remove() - { - parent.remove(); - } - -} +package appeng.util.item; + +import java.util.Iterator; + +import appeng.api.storage.data.IAEStack; + +public class MeaningfulIterator implements Iterator +{ + + final Iterator parent; + private StackType next; + + public MeaningfulIterator(Iterator iterator) { + parent = iterator; + } + + @Override + public boolean hasNext() + { + while (parent.hasNext()) + { + next = parent.next(); + if ( next.isMeaningful() ) + return true; + else + parent.remove(); // self cleaning :3 + } + + return false; + } + + @Override + public Object next() + { + return next; + } + + @Override + public void remove() + { + parent.remove(); + } + +}