Fix double Engine initialization

This commit is contained in:
JeremyStar™ 2024-10-15 03:29:13 +02:00
parent 175b0248d9
commit cdd68833cb
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -56,7 +56,6 @@ import java.util.*;
* @see EngineConfiguration * @see EngineConfiguration
* @since v1-alpha0 * @since v1-alpha0
*/ */
@EngineSubsystem
@SuppressWarnings({ "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class Engine extends SubsystemClass { public final class Engine extends SubsystemClass {
/** /**
@ -482,6 +481,7 @@ public final class Engine extends SubsystemClass {
LinkedList<DependencySubsystemVector> order = new LinkedList<>(); LinkedList<DependencySubsystemVector> order = new LinkedList<>();
// Add vectors // Add vectors
resolver.addVector(getDependencyVector());
resolver.addVectors(subsystems); resolver.addVectors(subsystems);
// Resolve dependencies and get order // Resolve dependencies and get order