Scheduler not stopping

Discussion in 'Plugin Development' started by rcth, Oct 17, 2013.

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

    rcth

    Hello there,

    I'm working on a new plugin, and after a specifc int is larger than the other int, it should stop the scheduler.
    http://pastebin.com/g8Ejpq4i

    But it seems like it doesn't stop correctly. The first time, it does what it should do. If "aantblocks" is 10, it spawns 10 Fallingblocks, but when I try it again, it doesn't work anymore. It just spawns 1 FallingBlock.

    Anyone can help?
     
  2. Offline

    Pizza371

    rcth the id int is probably getting overwritten?
     
  3. Offline

    adam753

    It looks like it's because "done" is a member variable of your listener class, so it's not getting reset to 0 each time.
     
  4. Offline

    rcth

    Thanks, that was the issue. I feel ashamed that I didn't figure that out XD
     
Thread Status:
Not open for further replies.

Share This Page