Natural lighting can now be updated dynamically

This commit is contained in:
CobaltXII
2018-12-31 16:53:09 -05:00
parent c017f41a44
commit 4350a6a3ae

View File

@@ -90,6 +90,25 @@ struct accessor
}
}
}
if ((id == id_air) != (old_id == id_air))
{
// Update lighting.
propagate_skylight_strip
(
the_world,
the_chunks,
chunk_x_res,
chunk_y_res,
chunk_z_res,
x,
z
);
}
}
};