diff --git a/me/storage/NetworkInventoryHandler.java b/me/storage/NetworkInventoryHandler.java index f47055c7..fa2450c3 100644 --- a/me/storage/NetworkInventoryHandler.java +++ b/me/storage/NetworkInventoryHandler.java @@ -39,21 +39,21 @@ public class NetworkInventoryHandler> implements IMEInvent final StorageChannel myChannel; final SecurityCache security; - // final TreeMultimap> prorityInventory; - final TreeMap>> prorityInventory; + // final TreeMultimap> priorityInventory; + final TreeMap>> priorityInventory; public NetworkInventoryHandler(StorageChannel chan, SecurityCache security) { myChannel = chan; this.security = security; - prorityInventory = new TreeMap( prioritySorter ); // TreeMultimap.create( prioritySorter, hashSorter ); + priorityInventory = new TreeMap( prioritySorter ); // TreeMultimap.create( prioritySorter, hashSorter ); } public void addNewStorage(IMEInventoryHandler h) { int priority = h.getPriority(); - List> list = prorityInventory.get( priority ); + List> list = priorityInventory.get( priority ); if ( list == null ) - prorityInventory.put( priority, list = new ArrayList() ); + priorityInventory.put( priority, list = new ArrayList() ); list.add( h ); } @@ -155,7 +155,7 @@ public class NetworkInventoryHandler> implements IMEInvent return input; } - Iterator>> i = prorityInventory.values().iterator();// asMap().entrySet().iterator(); + Iterator>> i = priorityInventory.values().iterator();// asMap().entrySet().iterator(); while (i.hasNext()) { @@ -197,7 +197,7 @@ public class NetworkInventoryHandler> implements IMEInvent return null; } - Iterator>> i = prorityInventory.descendingMap().values().iterator();// prorityInventory.asMap().descendingMap().entrySet().iterator(); + Iterator>> i = priorityInventory.descendingMap().values().iterator();// priorityInventory.asMap().descendingMap().entrySet().iterator(); T output = request.copy(); request = request.copy(); @@ -232,8 +232,8 @@ public class NetworkInventoryHandler> implements IMEInvent if ( diveIteration( this, Actionable.SIMULATE ) ) return out; - // for (Entry> h : prorityInventory.entries()) - for (List> i : prorityInventory.values()) + // for (Entry> h : priorityInventory.entries()) + for (List> i : priorityInventory.values()) for (IMEInventoryHandler j : i) out = j.getAvailableItems( out );