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