mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fixes
This commit is contained in:
parent
44358c122f
commit
19f78f769b
@ -38,6 +38,10 @@ public class IrisSettings
|
||||
@Desc("More cpu for pregen gui but looks nice.")
|
||||
public boolean maxPregenGuiFPS = false;
|
||||
|
||||
@DontObfuscate
|
||||
@Desc("Renders what the terrain looks like in the pregen map for iris worlds only.")
|
||||
public boolean pregenRenderTerrain = true;
|
||||
|
||||
@DontObfuscate
|
||||
@Desc("Adds sound to commands.")
|
||||
public boolean commandSounds = true;
|
||||
|
@ -280,6 +280,11 @@ public class IrisTerrainProvider extends PostBlockTerrainProvider implements Iri
|
||||
|
||||
public Color render(double x, double z)
|
||||
{
|
||||
if(!IrisSettings.get().pregenRenderTerrain)
|
||||
{
|
||||
return Color.blue;
|
||||
}
|
||||
|
||||
int ix = (int) x;
|
||||
int iz = (int) z;
|
||||
double height = getTerrainHeight(ix, iz);
|
||||
|
@ -55,7 +55,7 @@ public class IrisEngine extends BlockPopulator implements Engine
|
||||
|
||||
@Override
|
||||
public void generate(int x, int z, Hunk<BlockData> vblocks, Hunk<Biome> biomes) {
|
||||
Hunk<BlockData> blocks = vblocks.listen(this::catchBlockUpdates);
|
||||
Hunk<BlockData> blocks = vblocks.listen((xx,y,zz,t) -> catchBlockUpdates(x+xx,y+getMinHeight(),z+zz, t));
|
||||
getFramework().getEngineParallax().generateParallaxArea(x, z);
|
||||
getFramework().getBiomeActuator().actuate(x, z, biomes);
|
||||
getFramework().getTerrainActuator().actuate(x, z, blocks);
|
||||
|
Loading…
x
Reference in New Issue
Block a user