Fix crash when lighting is enabled, and the liquid mesher is null.

This commit is contained in:
Relintai 2021-04-18 19:16:29 +02:00
parent 07788b6e8d
commit 0043df1c1d

View File

@ -203,10 +203,12 @@ void TerraTerrarinJob::phase_terrarin_mesh() {
}
if (should_do()) {
_liquid_mesher->bake_colors(_chunk);
if (_liquid_mesher.is_valid()) {
_liquid_mesher->bake_colors(_chunk);
if (should_return()) {
return;
if (should_return()) {
return;
}
}
}
}