mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fixes
This commit is contained in:
parent
8820b02406
commit
55521afe35
@ -97,8 +97,8 @@ public class IrisEngine extends BlockPopulator implements Engine {
|
|||||||
public IrisEngine(EngineTarget target, EngineCompound compound, int index) {
|
public IrisEngine(EngineTarget target, EngineCompound compound, int index) {
|
||||||
Iris.info("Initializing Engine: " + target.getWorld().name() + "/" + target.getDimension().getLoadKey() + " (" + target.getHeight() + " height)");
|
Iris.info("Initializing Engine: " + target.getWorld().name() + "/" + target.getDimension().getLoadKey() + " (" + target.getHeight() + " height)");
|
||||||
metrics = new EngineMetrics(32);
|
metrics = new EngineMetrics(32);
|
||||||
getEngineData();
|
|
||||||
this.target = target;
|
this.target = target;
|
||||||
|
getEngineData();
|
||||||
this.framework = new IrisEngineFramework(this);
|
this.framework = new IrisEngineFramework(this);
|
||||||
worldManager = new IrisWorldManager(this);
|
worldManager = new IrisWorldManager(this);
|
||||||
this.compound = compound;
|
this.compound = compound;
|
||||||
@ -264,12 +264,6 @@ public class IrisEngine extends BlockPopulator implements Engine {
|
|||||||
return getData().getBiomeLoader().load(getDimension().getFocus());
|
return getData().getBiomeLoader().load(getDimension().getFocus());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void hotloading() {
|
|
||||||
getEngineData().getStatistics().hotloaded();
|
|
||||||
close();
|
|
||||||
}
|
|
||||||
|
|
||||||
@ChunkCoordinates
|
@ChunkCoordinates
|
||||||
@Override
|
@Override
|
||||||
public void populate(@NotNull World world, @NotNull Random random, @NotNull Chunk c) {
|
public void populate(@NotNull World world, @NotNull Random random, @NotNull Chunk c) {
|
||||||
@ -296,6 +290,7 @@ public class IrisEngine extends BlockPopulator implements Engine {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void hotload() {
|
public void hotload() {
|
||||||
|
getEngineData().getStatistics().hotloaded();
|
||||||
cacheId = RNG.r.nextInt();
|
cacheId = RNG.r.nextInt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,6 @@ public class ResourceLoader<T extends IrisRegistrant> {
|
|||||||
return possibleKeys;
|
return possibleKeys;
|
||||||
}
|
}
|
||||||
|
|
||||||
Iris.info("Building " + resourceTypeName + " Registry Lists");
|
|
||||||
KSet<String> m = new KSet<>();
|
KSet<String> m = new KSet<>();
|
||||||
|
|
||||||
for (File i : getFolders()) {
|
for (File i : getFolders()) {
|
||||||
|
@ -99,6 +99,7 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
|
|||||||
|
|
||||||
default void save() {
|
default void save() {
|
||||||
getParallax().saveAll();
|
getParallax().saveAll();
|
||||||
|
getWorldManager().onSave();
|
||||||
saveEngineData();
|
saveEngineData();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -406,7 +407,5 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
|
|||||||
|
|
||||||
IrisBiome getFocus();
|
IrisBiome getFocus();
|
||||||
|
|
||||||
void hotloading();
|
|
||||||
|
|
||||||
IrisEngineData getEngineData();
|
IrisEngineData getEngineData();
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ public abstract class EngineAssignedWorldManager extends EngineAssignedComponent
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void on(WorldSaveEvent e) {
|
public void on(WorldSaveEvent e) {
|
||||||
if (e.getWorld().equals(getTarget().getWorld().realWorld())) {
|
if (e.getWorld().equals(getTarget().getWorld().realWorld())) {
|
||||||
onSave();
|
getEngine().save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user