mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Stop serious memory leaks
This commit is contained in:
parent
d6b2e019c7
commit
0595008fce
@ -108,6 +108,7 @@ public class IrisComplex implements DataProvider {
|
||||
|
||||
public IrisComplex(Engine engine, boolean simple) {
|
||||
int cacheSize = 1024 * 128;
|
||||
IrisBiome emptyBiome = new IrisBiome();
|
||||
this.rng = new RNG(engine.getWorld().seed());
|
||||
this.data = engine.getData();
|
||||
double height = engine.getHeight();
|
||||
@ -151,7 +152,7 @@ public class IrisComplex implements DataProvider {
|
||||
.onNull("")
|
||||
.convertCached((s) -> {
|
||||
if (s.isEmpty()) {
|
||||
return new IrisBiome();
|
||||
return emptyBiome;
|
||||
}
|
||||
|
||||
return data.getBiomeLoader().load(s)
|
||||
|
@ -992,4 +992,8 @@ public class IrisObject extends IrisRegistrant {
|
||||
}
|
||||
return locations;
|
||||
}
|
||||
|
||||
public int volume() {
|
||||
return blocks.size();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user