mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +00:00
More fixes
This commit is contained in:
parent
ad01a157ce
commit
b6fdde403a
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.volmit</groupId>
|
||||
<artifactId>Iris</artifactId>
|
||||
<version>1.1.1</version>
|
||||
<version>1.1.3</version>
|
||||
<name>Iris</name>
|
||||
<properties>
|
||||
<skip.copy>false</skip.copy>
|
||||
|
@ -50,8 +50,12 @@ public class IrisTerrainActuator extends EngineAssignedActuator<BlockData>
|
||||
continue;
|
||||
}
|
||||
|
||||
for(i = hf; i >= b; i--)
|
||||
{
|
||||
for(i = hf; i >= b; i--) {
|
||||
if (i >= h.getHeight())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if(i == b && getDimension().isBedrock())
|
||||
{
|
||||
h.set(xf, i, zf, BEDROCK);
|
||||
|
@ -23,6 +23,11 @@ public class IrisRavineModifier extends EngineAssignedModifier<BlockData> {
|
||||
|
||||
@Override
|
||||
public void onModify(int x, int z, Hunk<BlockData> output) {
|
||||
if(!getDimension().isRavines())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
PrecisionStopwatch p = PrecisionStopwatch.start();
|
||||
generateRavines(rng, Math.floorDiv(x, 16), Math.floorDiv(z, 16), output);
|
||||
getEngine().getMetrics().getRavine().put(p.getMilliseconds());
|
||||
|
@ -58,11 +58,12 @@ public class IrisProject
|
||||
try
|
||||
{
|
||||
File f = d.getLoader().getDataFolder();
|
||||
|
||||
boolean foundWork = false;
|
||||
for(File i : f.listFiles())
|
||||
{
|
||||
if(i.getName().endsWith(".code-workspace"))
|
||||
{
|
||||
foundWork = true;
|
||||
sender.sendMessage("Updating Workspace...");
|
||||
J.a(() ->
|
||||
{
|
||||
@ -78,6 +79,25 @@ public class IrisProject
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(!foundWork)
|
||||
{
|
||||
File ff = new File(d.getLoader().getDataFolder(), d.getLoadKey() + ".code-workspace");
|
||||
Iris.warn("Project missing code-workspace: " + ff.getAbsolutePath() + " Re-creating code workspace.");
|
||||
|
||||
try
|
||||
{
|
||||
IO.writeAll(ff, createCodeWorkspaceConfig());
|
||||
}
|
||||
|
||||
catch(IOException e1)
|
||||
{
|
||||
e1.printStackTrace();
|
||||
}
|
||||
sender.sendMessage("Updating Workspace...");
|
||||
updateWorkspace();
|
||||
sender.sendMessage("Workspace Updated");
|
||||
}
|
||||
}
|
||||
|
||||
catch(Throwable e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user