Removing all mobs / entities beyond a given light level in a world.

Discussion in 'Plugin Development' started by Shay Williams, May 28, 2012.

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

    Shay Williams

    Hey bukkit. The title basically sums up my question, this is what I have so far.

    I feel like I'm just misunderstanding how to use certain element of the bukkit API. If anyone could point me in the right direction that'd be awesome.

    If you're wondering, executing this on a test server with many mobs at light levels 0 and 1 results in none being removed and it just returning that 0 were deleted.

    Thanks in advance for any guidance!
  2. Offline


    Shay Williams likes this.
  3. Offline

    Shay Williams

    Oh jeeze! Nice catch man thank you so much; it's still early here in California :<.
  4. Offline


    Haha, no problem, been there done that.. :D
    Glad it's solved anyhow :)
  5. Offline


    for(int i=0; i <= e.size(); i++){
    is going to throw an out of bounds error use:

    for(int i=0; i <e.size(); i++){
    Williamsson likes this.
  6. Offline


    Bah, ofcourse! <.<
    Good that someone is alert enough around here! :D
Thread Status:
Not open for further replies.

Share This Page