Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int swapOutside(int x, int y, ItemInInv item) throws InventoryException {
- List<Integer> hash = checkBlockingItems(x, y, item);
- if(hash.size() == 1) {
- indexHold = seq.indexOf(hash.get(0));
- holdingItem = inv.get(hash.get(0));
- indexToSwap = nextFreeSequence();
- seq.set(indexHold, -1);
- seq.set(indexToSwap, (y*100)+x);
- putIntoInv(x, y, item);
- System.out.println("indexHold: " + indexHold + " indexToSwap: " + indexToSwap);
- return indexHold;
- }
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement