recursive method throwing an error

Discussion in 'Plugin Development' started by matter123, Jul 6, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    matter123

    i have this method
    PHP:
            private ArrayList<Blockfill(ArrayList<BlockarrayListBlock block,
                    
    BlockFace pusherArm) {
                if(
    block.getTypeId()!=0) {
                    return 
    fill(arrayListblock.getRelative(pusherArm), pusherArm);
                }
                return 
    arrayList;
            }
    but it doesnt work why?
    what it should do is fill an arraylist of all non air blocks in one direction untill it reaches an air block
     
  2. Offline

    ItsHarry

    What do you mean with it doesn't work? Is there an error? Is the result not correct? Please explain
     
  3. Offline

    matter123

    nevermind i solved the error i was passing BlockFace.SELF to the method
     
Thread Status:
Not open for further replies.

Share This Page