what do you mean, NULL->getter() doesn't work?

This commit is contained in:
Menche 2017-07-07 15:43:14 -07:00 committed by darkrose
parent 6ce9b70f06
commit e00208bcdd
1 changed files with 2 additions and 1 deletions

View File

@ -2295,8 +2295,9 @@ void the_game(
v3f pp = client.getLocalPlayer()->getPosition();
spos = floatToInt(pp,BS);
}
MapBlock *block = client.getEnv().getMap().getBlockNoCreateNoEx(getNodeBlockPos(spos));
snode = client.getEnv().getMap().getNodeNoEx(spos,NULL);
biome = client.getEnv().getMap().getBlockNoCreateNoEx(getNodeBlockPos(spos))->getBiome();
biome = (block == NULL) ? BIOME_UNKNOWN : block->getBiome();
}
LocalPlayer *p = client.getLocalPlayer();