This commit is contained in:
proller committed 2025-10-14 02:08:22 +02:00
1 parent 3843520d33
commit 31daddf463
3 files changed
+8 -4

No files matched your search

+4 -1
View File
@@ -185,11 +185,14 @@ void WorldMerger::merge_one_block(MapDatabase *dbase, MapDatabase *dbase_up,
}
const auto &lf = ndef->getLightingFlags(c);
const auto &cf = ndef->get(c);
if (const auto light_night = n.getLightRaw(LIGHTBANK_NIGHT, lf);
light_night) {
top_light_night.emplace_back(light_night);
}
if (farlights && !step && (lf.light_source)) {
// TODO: whats with lava?
if (farlights && !step && (lf.light_source) && !cf.isLiquid()) {
const auto plpos =
block->getPosRelative() + p; //pos_in_block;
const auto &[i, r] = block->m_light_points.try_emplace(
+3 -2
View File
@@ -103,10 +103,11 @@ private:
// Order must match the order of 'static MapgenDesc g_reg_mapgens[]' in mapgen.cpp
enum MapgenType {
// freeminer:
MAPGEN_EARTH,
MAPGEN_INDEV,
MAPGEN_MATH,
MAPGEN_INDEV,
// ==========
MAPGEN_V7,
MAPGEN_VALLEYS,