9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-30 20:39:21 +00:00

Base biome fixes

This commit is contained in:
Daniel Mills
2020-11-23 13:37:13 -05:00
parent 58845ae79f
commit ac04ef34d7
10 changed files with 117 additions and 17 deletions

View File

@@ -69,12 +69,10 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
public void hotload()
{
if(hotloadcd.flip())
if(isStudio())
{
Iris.proj.updateWorkspace();
getData().dump();
initialized.lazySet(false);
hotloader.checkIgnore();
J.s(() -> {
try
{
@@ -90,6 +88,7 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
}
});
initialized.lazySet(false);
}
}
@@ -314,7 +313,7 @@ public class EngineCompositeGenerator extends ChunkGenerator implements IrisAcce
compound.generate(x * 16, z * 16, blocks, post, biomes);
generated++;
return () -> blocks.insertSoftly(0,0,0,post, (b) -> b == null || B.isAir(b));
return () -> blocks.insertSoftly(0,0,0,post, (b) -> b == null || B.isAirOrFluid(b));
}
@Override

View File

@@ -15,6 +15,11 @@ public interface EngineDecorator extends EngineComponent {
default boolean canGoOn(BlockData decorant, BlockData atop)
{
if(atop == null || B.isAir(atop))
{
return false;
}
return B.canPlaceOnto(decorant.getMaterial(), atop.getMaterial());
}
}