refactored ModuleRegistry to singleton system

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-09-12 00:38:28 +02:00
parent e8e215f24c
commit bfe87f53a8
23 changed files with 140 additions and 163 deletions

View File

@@ -21,8 +21,8 @@ public class Translations extends PathHandler implements Translator {
private HashMap<String, JSONObject> translations = new HashMap<>();
public Translations(ModuleRegistry registry) {
registry.add(this);
public Translations() {
ModuleRegistry.add(this);
}
@Override