Chaning a lot of different blocks

Discussion in 'Plugin Development' started by Woutske, Jun 6, 2011.

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

    Woutske

    Hello,

    I have made an plugin that make fire spread on grass, and it works very good. There is just one thing that hates me: When the fire is starting to get big, bukkit crashes saying there is a nullpointer-exeption in the chunkloading.

    I check if the chunks are loaded before i replace, but it still doesn't work; i think this is the reason:

    - You need to change the blocks seperate (e.g. chunk by chunk), and in a seperate chunk.

    But is this correct, because every time i tried using a thread, the server freezes till the job gets done..

    Thanks in advance,

    Wouters
     
  2. Offline

    masteroftime

    If you want to help us help you, the detailed Error message and the code snippet where the error occurs would be nice.
     
  3. Offline

    Dreadreaver

    You have to use an async thread if you don't want the server to freeze but using an async thread poses some other dangers.
     
Thread Status:
Not open for further replies.

Share This Page