mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 08:44:50 +00:00
Let the server's placement rules reset on reload and stop post from removing foliage
The remembered "plant survives on ground" answers went stale when the server or CraftEngine reloaded resources, so they are now cleared on both events. The post-stage foliage removal second-guessed the server rule and deleted foliage that is not a decoration, so it is gone. Pins: none moved; the only changed test is SurfaceSmoothingTest, which now expects the fern to stay. v3: af333cc93
This commit is contained in:
1 parent
0b5aa54df7
commit
23bed57728
8 files changed
+69
-16
No files matched your search
@@ -113,14 +113,15 @@ public class SurfaceSmoothingTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void foliageThatLostItsGroundGoesButDecorationsStay() {
|
||||
public void foliageStaysEvenWhereTheServerSaysItsGroundRejectsIt() {
|
||||
BlockState fern = block("minecraft:fern");
|
||||
BlockState poppy = block("minecraft:poppy");
|
||||
ApiChunk chunk = ground((x, z) -> GROUND).set(X, GROUND + 1, Z, block("minecraft:fern")).set(X + 2, GROUND + 1, Z, poppy);
|
||||
ApiChunk chunk = ground((x, z) -> GROUND).set(X, GROUND + 1, Z, fern).set(X + 2, GROUND + 1, Z, poppy);
|
||||
|
||||
chunk.generate(new PostModule());
|
||||
|
||||
assertEquals("stone holds no fern", AIR, chunk.get(X, GROUND + 1, Z));
|
||||
assertEquals("perfection, not post, removes decorations", poppy, chunk.get(X + 2, GROUND + 1, Z));
|
||||
assertEquals("post no longer removes foliage", fern, chunk.get(X, GROUND + 1, Z));
|
||||
assertEquals(poppy, chunk.get(X + 2, GROUND + 1, Z));
|
||||
}
|
||||
|
||||
/** A chunk of stone up to {@code heights}, the terrain's surface. */
|
||||
|
||||
Reference in new issue
Block a user