Add initialize call with parent for part of
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2023-03-14 16:57:11 +01:00
Ursprung 780caae80d
Commit 41b46eb6f5

Datei anzeigen

@ -80,7 +80,7 @@ public abstract class AbstractSWCommand<T> {
protected void sendMessage(T sender, String message, Object[] args) {
}
protected void initialisePartOf(AbstractSWCommand<T> parent) {
protected void initialisePartOf(AbstractSWCommand parent) {
}
protected final void execute(T sender, String alias, String[] args) {
@ -159,7 +159,7 @@ public abstract class AbstractSWCommand<T> {
dependencyMap.get(this.getClass()).forEach(abstractSWCommand -> {
abstractSWCommand.localTypeMapper.putAll((Map) localTypeMapper);
abstractSWCommand.localValidators.putAll((Map) localValidators);
abstractSWCommand.initialisePartOf((AbstractSWCommand) this);
abstractSWCommand.initialisePartOf(this);
abstractSWCommand.initialize();
commandList.addAll((Collection) abstractSWCommand.commandList);
});