Style cleanup

Note: Stream is nice to have in some places, just *please* don't abuse it
This commit is contained in:
LeoDog896 2021-03-23 11:42:32 -04:00
parent 701b1cb2e5
commit 5adbbd8c45

View File

@ -127,7 +127,7 @@ public class ExtensionManager {
// periodically cleanup observers // periodically cleanup observers
MinecraftServer.getSchedulerManager().buildTask(() -> { MinecraftServer.getSchedulerManager().buildTask(() -> {
for(Extension ext : extensionList) { for (Extension ext : extensionList) {
ext.cleanupObservers(); ext.cleanupObservers();
} }
}).repeat(1L, TimeUnit.MINUTE).schedule(); }).repeat(1L, TimeUnit.MINUTE).schedule();
@ -448,9 +448,9 @@ public class ExtensionManager {
LOGGER.trace("Added dependency {} to extension {} classpath", location.toExternalForm(), extension.getName()); LOGGER.trace("Added dependency {} to extension {} classpath", location.toExternalForm(), extension.getName());
// recurse to add full dependency tree // recurse to add full dependency tree
if(!dependency.getSubdependencies().isEmpty()) { if (!dependency.getSubdependencies().isEmpty()) {
LOGGER.trace("Dependency {} has subdependencies, adding...", location.toExternalForm()); LOGGER.trace("Dependency {} has subdependencies, adding...", location.toExternalForm());
for(ResolvedDependency sub : dependency.getSubdependencies()) { for (ResolvedDependency sub : dependency.getSubdependencies()) {
addDependencyFile(sub, extension); addDependencyFile(sub, extension);
} }
LOGGER.trace("Dependency {} has had its subdependencies added.", location.toExternalForm()); LOGGER.trace("Dependency {} has had its subdependencies added.", location.toExternalForm());