Fix foundation cell lookup

- Call lowestFoundationCells in NMS surface terrain tests
- Match the renamed VolmLib occupancy method
This commit is contained in:
Brian Fopiano committed 2026-11-11 01:08:33 -05:00
1 parent ed037ea40b
commit 832070cd69
2 files changed
+6 -6

No files matched your search

@@ -570,7 +570,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
area::isInside, cells -> {});
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
assertTrue(state(blocks, 4, 96, 0).isAir());
assertEquals(1, pathGround.size());
@@ -619,7 +619,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
area::isInside, cells -> {});
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
assertEquals(2, pathGround.size());
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
@@ -675,7 +675,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
area::isInside, cells -> {});
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
assertEquals(2, pathGround.size());
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
@@ -570,7 +570,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
area::isInside, cells -> {});
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
assertTrue(state(blocks, 4, 96, 0).isAir());
assertEquals(1, pathGround.size());
@@ -619,7 +619,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
area::isInside, cells -> {});
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
assertEquals(2, pathGround.size());
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
@@ -675,7 +675,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
area::isInside, cells -> {});
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
assertEquals(2, pathGround.size());
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {