mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
Turned minecraft into a proper Mod, with a "dummy" language provider.
Also fixed the "translations" not being available early if an exception occurs by force loading the forge and MC ones. Closes #5984 Signed-off-by: cpw <[email protected]>
This commit is contained in:
18 files changed
+257
-134
No files matched your search
@@ -41,7 +41,11 @@ public class ModLoadingContext
|
||||
}
|
||||
|
||||
public ModContainer getActiveContainer() {
|
||||
return activeContainer == null ? DefaultModContainers.MINECRAFT : activeContainer;
|
||||
return activeContainer == null ? ModList.get().getModContainerById("minecraft").orElseThrow(()->new RuntimeException("Where is minecraft???!")) : activeContainer;
|
||||
}
|
||||
|
||||
public String getActiveNamespace() {
|
||||
return activeContainer == null ? "minecraft" : activeContainer.getNamespace();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user