mirror of
https://github.com/Relintai/terraman.git
synced 2025-05-01 22:07:59 +02:00
Fix crash when lighting is enabled, and the liquid mesher is null.
This commit is contained in:
parent
07788b6e8d
commit
0043df1c1d
@ -203,10 +203,12 @@ void TerraTerrarinJob::phase_terrarin_mesh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (should_do()) {
|
if (should_do()) {
|
||||||
_liquid_mesher->bake_colors(_chunk);
|
if (_liquid_mesher.is_valid()) {
|
||||||
|
_liquid_mesher->bake_colors(_chunk);
|
||||||
|
|
||||||
if (should_return()) {
|
if (should_return()) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user