mirror of
https://github.com/bdnugget/freeminer.git
synced 2026-11-07 06:57:27 +00:00
fix
This commit is contained in:
1 parent
3843520d33
commit
31daddf463
3 files changed
+8
-4
No files matched your search
+1
-1
Submodule games/default updated: af69357579...d99b96e652.
@@ -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
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user