Skip to content

Commit

Permalink
correct "typo"(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiantLuigi4 committed Sep 27, 2023
1 parent 9e40618 commit 3c3cbbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/turniplabs/halplibe/helper/RegistryHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
import java.util.ArrayList;

public class RegistryHelper {
private static final ArrayList<Runnable> regsiterFunctions = new ArrayList<>();
private static final ArrayList<Runnable> regsitryFunctions = new ArrayList<>();

public static void scheduleRegistry(boolean configured, Runnable register) {
if (configured) regsiterFunctions.add(0, register);
else regsiterFunctions.add(register);
public static void scheduleRegistry(boolean configured, Runnable function) {
if (configured) regsitryFunctions.add(0, function);
else regsitryFunctions.add(function);
}

@SuppressWarnings("unused")
private static void runRegistry() {
for (Runnable regsiterFunction : regsiterFunctions) {
regsiterFunction.run();
for (Runnable regsitryFunction : regsitryFunctions) {
regsitryFunction.run();
}
}
}

0 comments on commit 3c3cbbd

Please sign in to comment.