Skip to content

Commit

Permalink
noggit: liquid_layer: fix ocean liquid vertex format being wrong when…
Browse files Browse the repository at this point in the history
… saving ocean chunks not at 0 height
  • Loading branch information
Adspartan committed Nov 24, 2024
1 parent 33c1518 commit aab5451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/noggit/liquid_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ void liquid_layer::changeLiquidID(int id)
_liquid_vertex_format = 1;
break;
case 1: // ocean
_liquid_vertex_format = 2;
// lvf 2 is only used for flat water at height 0
_liquid_vertex_format = misc::float_equals(_minimum, 0.f) && misc::float_equals(_maximum, 0.f) ? 2 : 0;
_mclq_liquid_type = 1;
break;
default: // river
Expand Down

0 comments on commit aab5451

Please sign in to comment.