silly double check

This commit is contained in:
darkrose 2015-03-23 19:58:31 +10:00
parent 05b6801663
commit 474b78ce0e
1 changed files with 3 additions and 5 deletions

View File

@ -1499,13 +1499,11 @@ void ServerEnvironment::step(float dtime)
ContentFeatures &f = content_features(n_top);
if (f.air_equivalent) {
if (n.envticks > 2) {
if (f.air_equivalent) {
if (p.Y > 50 && p.Y < 1024) {
n.setContent(CONTENT_MUDSNOW);
m_map->addNodeWithEvent(p, n);
}
}
}
int f = (700-(p.Y*2))+10;
if (p.Y > 1 && myrand()%f == 0) {
if (n_top.getContent() == CONTENT_AIR && n_top.getLightBlend(getDayNightRatio()) >= 13) {