1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

error

Discussion in 'Help' started by rektpixel, Jan 8, 2017.

  1. rektpixel

    rektpixel Baby Zombie

    Messages:
    186
    hello there is something wrong with this code. but I'm not sure what it is. the console keeps saying that something is wrong with this bottom line:

    public function populateChunk($chunkX, $chunkZ) {
    for ($x = 0; $x < 16; $x++) {
    for ($z = 0; $z < 16; $z++) {
    $this->level->getChunk($chunkX, $chunkZ)->setBiomeColor($x, $z, 133, 188, 86);

    something is wrong with $this->level->getChunk($chunkX, $chunkZ)->setBiomeColor($x, $z, 133, 188, 86); and idk what it is. please help
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    set biome color is broken?
     
  3. rektpixel

    rektpixel Baby Zombie

    Messages:
    186
    yeah. do you know what's wrong with that line?
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Please use code blocks when posting code:

    [PHP]Your Code[/PHP]
     
  5. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.