don't assign the same value twice there

This commit is contained in:
Menche 2017-07-08 22:02:45 -07:00 committed by darkrose
parent e00208bcdd
commit c7910d0af2
1 changed files with 2 additions and 1 deletions

View File

@ -2297,7 +2297,8 @@ void the_game(
} }
MapBlock *block = client.getEnv().getMap().getBlockNoCreateNoEx(getNodeBlockPos(spos)); MapBlock *block = client.getEnv().getMap().getBlockNoCreateNoEx(getNodeBlockPos(spos));
snode = client.getEnv().getMap().getNodeNoEx(spos,NULL); snode = client.getEnv().getMap().getNodeNoEx(spos,NULL);
biome = (block == NULL) ? BIOME_UNKNOWN : block->getBiome(); if (block != NULL)
biome = block->getBiome();
} }
LocalPlayer *p = client.getLocalPlayer(); LocalPlayer *p = client.getLocalPlayer();