@@ -55,7 +55,7 @@ public SodiumTerrainPipeline(WorldRenderingPipeline parent,
5555 sources .getGeometrySource ().orElse (null ),
5656 sources .getFragmentSource ().orElse (null ));
5757 terrainVertex = Optional .ofNullable (result .get (PatchShaderType .VERTEX ));
58- terrainGeometry = sources . getGeometrySource ( );
58+ terrainGeometry = Optional . ofNullable ( result . get ( PatchShaderType . GEOMETRY ) );
5959 terrainFragment = Optional .ofNullable (result .get (PatchShaderType .FRAGMENT ));
6060
6161 PatchedShaderPrinter .debugPatchedShaders (sources .getName () + "_sodium" ,
@@ -68,7 +68,7 @@ public SodiumTerrainPipeline(WorldRenderingPipeline parent,
6868 sources .getGeometrySource ().orElse (null ),
6969 sources .getFragmentSource ().orElse (null ));
7070 translucentVertex = Optional .ofNullable (result .get (PatchShaderType .VERTEX ));
71- translucentGeometry = sources . getGeometrySource ( );
71+ translucentGeometry = Optional . ofNullable ( result . get ( PatchShaderType . GEOMETRY ) );
7272 translucentFragment = Optional .ofNullable (result .get (PatchShaderType .FRAGMENT ));
7373
7474 PatchedShaderPrinter .debugPatchedShaders (sources .getName () + "_sodium" ,
@@ -81,7 +81,7 @@ public SodiumTerrainPipeline(WorldRenderingPipeline parent,
8181 sources .getGeometrySource ().orElse (null ),
8282 sources .getFragmentSource ().orElse (null ));
8383 shadowVertex = Optional .ofNullable (result .get (PatchShaderType .VERTEX ));
84- shadowGeometry = sources . getGeometrySource ( );
84+ shadowGeometry = Optional . ofNullable ( result . get ( PatchShaderType . GEOMETRY ) );
8585 shadowFragment = Optional .ofNullable (result .get (PatchShaderType .FRAGMENT ));
8686
8787 PatchedShaderPrinter .debugPatchedShaders (sources .getName () + "_sodium" ,
0 commit comments