Translation
This commit is contained in:
parent
d0974ab646
commit
c609f98ec2
4 changed files with 30 additions and 2 deletions
|
@ -10,6 +10,7 @@ import com.google.gson.Gson;
|
|||
import com.google.gson.JsonObject;
|
||||
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.registry.BiomeRegistry;
|
||||
import ru.betterend.registry.ItemRegistry;
|
||||
|
||||
public class TranslationHelper {
|
||||
|
@ -43,6 +44,18 @@ public class TranslationHelper {
|
|||
}
|
||||
});
|
||||
|
||||
BiomeRegistry.getModBiomes().forEach((endBiome) -> {
|
||||
if (endBiome.getID().getNamespace().equals(BetterEnd.MOD_ID)) {
|
||||
String name = "biome." + BetterEnd.MOD_ID + "." + endBiome.getID().getPath();
|
||||
if (!translationEn.has(name)) {
|
||||
missingNamesEn.add(name);
|
||||
}
|
||||
if (!translationRu.has(name)) {
|
||||
missingNamesRu.add(name);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (!missingNamesEn.isEmpty() || !missingNamesRu.isEmpty()) {
|
||||
|
||||
System.out.println("========================================");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue