Block.getBiome returning strange result

Discussion in 'Plugin Development' started by DoorKip, Mar 28, 2011.

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

    DoorKip

    I'm working on a plugin that randomly gets a block in a loaded chunk, and places snow on the top block, if it is one of the snow boimes.

    Now, the first two parts work without a hitch. I can get the highest block, and I can place snow on it, but for whatever reason, if I try to check if the block is of the correct biome, the getBiome() method always returns Biome.FOREST

    (e.g.)
    if ( snowTest.getBiome() != Biome.FOREST ){
    System.out.println("not forest");
    } //this never prints anything, regardless of biome composition.

    I'm not quite sure what could be causing this, as the world that I am testing the plugin on has a good diversity of biomes, and nothing else seems to be going wrong.

    If anyone has any ideas as to the cause of this, I would appreciate hearing them.
     
  2. Offline

    narrowtux

    Update to the newest version of craftbukkit, where they fixed it.
     
  3. Offline

    DoorKip

    @narrowtux
    Ah, so it does. Thank you sir.

    @narrowtux
    Or not. It would seem that it is still doing the exact same thing.

    What build was supposed to have fixed this precisely?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
Thread Status:
Not open for further replies.

Share This Page