make register_func static
All checks were successful
/ Auto-Build-App (push) Successful in 1m25s

This commit is contained in:
pietru2004 2024-10-28 09:43:02 +01:00
parent ce97ad3c86
commit 82606023b3
2 changed files with 1 additions and 4 deletions

View file

@ -27,8 +27,6 @@ public abstract class Setup {
public ArrayList<Runnable> steps = new ArrayList<>(); public ArrayList<Runnable> steps = new ArrayList<>();
public ArrayList<String> step_hints = new ArrayList<>(); public ArrayList<String> step_hints = new ArrayList<>();
public abstract void register();
public void run_step(){ public void run_step(){
if (!isActive) if (!isActive)
return; return;

View file

@ -39,8 +39,7 @@ public class regionSetup extends Setup {
step_hints.add("Please enter region name (single word)..."); step_hints.add("Please enter region name (single word)...");
} }
@Override public static void register() {
public void register() {
setupCreator.registerSetupCreator("region", regionSetup::new); setupCreator.registerSetupCreator("region", regionSetup::new);
} }