Inv to Nearby Dispensers?

Discussion in 'Spigot Plugin Development' started by Inkzzz, Jun 14, 2015.

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

    Resource Staff

    Dear,
    I'm trying to fill nearby dispensers with tnt from the players inventory, however every time I do the command it crashes my server?

    Everything works apart from the final for loop?

    Fixed, stupid error
     
    #1 Inkzzz, Jun 14, 2015
    Last edited: Jun 14, 2015
  2. Oh dear.

    If tntper > 1 at least once, it will loop here forever as it is never changed.

    tntper > 1? it is: add items to dispenser inventory, do not change tntper.
    tntper > 1? it still is: add items, do not change
    tntper > 1? it still is: add items, do not change
    tntper > 1? it still is: add items, do not change
    tntper > 1? it still is: add items, do not change

    (...)
     
    • Useful Useful x 1
  3. Inkzzz

    Resource Staff

    Oh haha, thanks I fixed it.
     
Thread Status:
Not open for further replies.