mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-04 00:46:08 +00:00
Actuator Cleanup
This commit is contained in:
parent
2fa03aac3b
commit
fe112c3ba5
@ -47,13 +47,11 @@ public class IrisBiomeActuator extends EngineAssignedActuator<Biome> {
|
|||||||
public void onActuate(int x, int z, Hunk<Biome> h, boolean multicore, ChunkContext context) {
|
public void onActuate(int x, int z, Hunk<Biome> h, boolean multicore, ChunkContext context) {
|
||||||
try {
|
try {
|
||||||
PrecisionStopwatch p = PrecisionStopwatch.start();
|
PrecisionStopwatch p = PrecisionStopwatch.start();
|
||||||
|
|
||||||
int m = 0;
|
|
||||||
for (int xf = 0; xf < h.getWidth(); xf++) {
|
for (int xf = 0; xf < h.getWidth(); xf++) {
|
||||||
IrisBiome ib;
|
IrisBiome ib;
|
||||||
for (int zf = 0; zf < h.getDepth(); zf++) {
|
for (int zf = 0; zf < h.getDepth(); zf++) {
|
||||||
ib = context.getBiome().get(xf, zf);
|
ib = context.getBiome().get(xf, zf);
|
||||||
MatterBiomeInject matter = null;
|
MatterBiomeInject matter;
|
||||||
|
|
||||||
if (ib.isCustom()) {
|
if (ib.isCustom()) {
|
||||||
IrisBiomeCustom custom = ib.getCustomBiome(rng, x, 0, z);
|
IrisBiomeCustom custom = ib.getCustomBiome(rng, x, 0, z);
|
||||||
@ -64,10 +62,8 @@ public class IrisBiomeActuator extends EngineAssignedActuator<Biome> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getEngine().getMantle().getMantle().set(x + xf, 0, z + zf, matter);
|
getEngine().getMantle().getMantle().set(x + xf, 0, z + zf, matter);
|
||||||
m++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getEngine().getMetrics().getBiome().put(p.getMilliseconds());
|
getEngine().getMetrics().getBiome().put(p.getMilliseconds());
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user