mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 18:24:06 +00:00
Fix foundation cell lookup
- Call lowestFoundationCells in NMS surface terrain tests - Match the renamed VolmLib occupancy method
This commit is contained in:
2 files changed
+6
-6
No files matched your search
+3
-3
@@ -570,7 +570,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
|
|||||||
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
||||||
area::isInside, cells -> {});
|
area::isInside, cells -> {});
|
||||||
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
||||||
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
|
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
|
||||||
|
|
||||||
assertTrue(state(blocks, 4, 96, 0).isAir());
|
assertTrue(state(blocks, 4, 96, 0).isAir());
|
||||||
assertEquals(1, pathGround.size());
|
assertEquals(1, pathGround.size());
|
||||||
@@ -619,7 +619,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
|
|||||||
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
||||||
area::isInside, cells -> {});
|
area::isInside, cells -> {});
|
||||||
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
||||||
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
|
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
|
||||||
|
|
||||||
assertEquals(2, pathGround.size());
|
assertEquals(2, pathGround.size());
|
||||||
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
|
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
|
||||||
@@ -675,7 +675,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
|
|||||||
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
||||||
area::isInside, cells -> {});
|
area::isInside, cells -> {});
|
||||||
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
||||||
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
|
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
|
||||||
|
|
||||||
assertEquals(2, pathGround.size());
|
assertEquals(2, pathGround.size());
|
||||||
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
|
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
|
||||||
|
|||||||
+3
-3
@@ -570,7 +570,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
|
|||||||
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
||||||
area::isInside, cells -> {});
|
area::isInside, cells -> {});
|
||||||
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
||||||
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
|
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
|
||||||
|
|
||||||
assertTrue(state(blocks, 4, 96, 0).isAir());
|
assertTrue(state(blocks, 4, 96, 0).isAir());
|
||||||
assertEquals(1, pathGround.size());
|
assertEquals(1, pathGround.size());
|
||||||
@@ -619,7 +619,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
|
|||||||
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
||||||
area::isInside, cells -> {});
|
area::isInside, cells -> {});
|
||||||
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
||||||
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
|
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
|
||||||
|
|
||||||
assertEquals(2, pathGround.size());
|
assertEquals(2, pathGround.size());
|
||||||
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
|
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
|
||||||
@@ -675,7 +675,7 @@ public class NativeStructurePostProcessorSurfaceTerrainTest {
|
|||||||
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
NativeStructurePostProcessorSurfaceTerrainTest::forbiddenTemplateManager,
|
||||||
area::isInside, cells -> {});
|
area::isInside, cells -> {});
|
||||||
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
Map<Long, NativeStructureTemplateOccupancy.LowestCell> pathGround =
|
||||||
NativeStructureTemplateOccupancy.lowestProcessedSolidCells(occupancy.cells());
|
NativeStructureTemplateOccupancy.lowestFoundationCells(occupancy.cells());
|
||||||
|
|
||||||
assertEquals(2, pathGround.size());
|
assertEquals(2, pathGround.size());
|
||||||
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
|
for (NativeStructureTemplateOccupancy.LowestCell cell : pathGround.values()) {
|
||||||
|
|||||||
Reference in new issue
Block a user