mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-27 22:40:13 +00:00
Drop added code comments
- Remove the Javadoc and inline comment blocks the three runtime-safety commits added under src/main - Keep the GPL file header on the new spi type, matching every other file in that module - Leave the superseded stale-temp ordering comment deleted rather than restoring text the new boot path contradicts
This commit is contained in:
1 parent
486c6eeae9
commit
fd146de1ad
17 files changed
-140
No files matched your search
@@ -717,9 +717,6 @@ public class Iris extends VolmitPlugin implements Listener, ReloadAware {
|
||||
IrisServices.register(ManagedWorldLoader.class, (ManagedWorldLoader) this::loadManagedWorld);
|
||||
SettingsHotloadWatch watch = new SettingsHotloadWatch(getDataFile("iris.json"));
|
||||
settingsHotloadWatch = watch;
|
||||
// Off the boot thread, because a stale cache/temp can hold a whole abandoned pack import and
|
||||
// deleting it recursively is unbounded. Every pack import waits this sweep out instead, which is
|
||||
// the invariant that mattered: a delete running underneath an import truncated it mid-copy.
|
||||
StudioSVC.gateDownloadsOnStaleTempCleanup(MultiBurst.ioBurst.completeValueAsync(() -> {
|
||||
IO.delete(getTemp());
|
||||
return null;
|
||||
@@ -793,11 +790,6 @@ public class Iris extends VolmitPlugin implements Listener, ReloadAware {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Where the enable thread went, so a boot that got slower can be attributed to a phase rather than to
|
||||
* Iris in general. The total is a lifecycle milestone and lands in logs/latest.log; the breakdown is
|
||||
* for whoever is looking.
|
||||
*/
|
||||
private static final class EnableTimings {
|
||||
private static final int REPORTED_SERVICES = 3;
|
||||
|
||||
@@ -946,11 +938,6 @@ public class Iris extends VolmitPlugin implements Listener, ReloadAware {
|
||||
reportLockedRuntime();
|
||||
}
|
||||
|
||||
/**
|
||||
* refuseVanillaFallback only ever runs when enable itself failed. A boot that enabled into Danger Mode
|
||||
* keeps every configured Iris world bound to a generator that throws, and until now said so nowhere
|
||||
* after the banner.
|
||||
*/
|
||||
private static void reportLockedRuntime() {
|
||||
String denial = IrisStartupValidation.denialReason().orElse(null);
|
||||
if (denial == null) {
|
||||
@@ -1131,11 +1118,6 @@ public class Iris extends VolmitPlugin implements Listener, ReloadAware {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A disabled plugin must not stay reachable through a static. Everything that reads these either runs
|
||||
* while Iris is enabled or already handles their absence; the platform binding outlives them because
|
||||
* core still logs through it until finishTerminalCleanup unbinds it.
|
||||
*/
|
||||
private static void releaseStatics() {
|
||||
linkMultiverseCore = null;
|
||||
compat = null;
|
||||
|
||||
-3
@@ -496,9 +496,6 @@ public final class IrisWorldGeneratorResolver {
|
||||
Iris.debug("Using staged runtime generator for " + worldName);
|
||||
return stagedGenerator;
|
||||
}
|
||||
// A world Iris created staged its generator above and installed the injection on the way in. This
|
||||
// is a world configured outside Iris, and Bukkit asks for its generator before it builds the level,
|
||||
// so this is the last point at which the injection it needs can still be installed in time.
|
||||
RuntimeInjection.installIfDeferred();
|
||||
startupLock = startupLockedGenerator(worldName);
|
||||
if (startupLock != null) {
|
||||
|
||||
@@ -378,8 +378,6 @@ public class WandSVC implements IrisService {
|
||||
activePlayers.clear();
|
||||
ticksUntilPlayerRescan = 0;
|
||||
taskId = J.ar(this::tickAll, 1);
|
||||
// Building the templates reaches the item and enchantment registries, which costs more than the
|
||||
// rest of this service's startup put together and is only needed to recognise a pre-marker wand.
|
||||
J.s(() -> {
|
||||
wand = createWand();
|
||||
dust = createDust();
|
||||
|
||||
Reference in new issue
Block a user