Finished clean-up after merging the updated main branch into v2.0

This commit is contained in:
Artemis-the-gr8 2023-02-06 12:26:03 +01:00
parent 6298bf075c
commit 3dd43d3a8d
1 changed files with 2 additions and 3 deletions

View File

@ -12,9 +12,9 @@ import org.jetbrains.annotations.Nullable;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.Locale;
/**
*
@ -45,7 +45,6 @@ public final class LanguageKeyHandler extends FileHandler {
}
return instance;
}
languageKeys = YamlConfiguration.loadConfiguration(languageKeyFile);
}
@Contract(pure = true)
@ -239,7 +238,7 @@ public final class LanguageKeyHandler extends FileHandler {
if (block == null) return null;
else if (block.toString().toLowerCase(Locale.ENGLISH).contains("wall_banner")) { //replace wall_banner with regular banner, since there is no key for wall banners
String blockName = block.toString().toLowerCase(Locale.ENGLISH).replace("wall_", "");
Material newBlock = EnumHandler.getBlockEnum(blockName);
Material newBlock = EnumHandler.getInstance().getBlockEnum(blockName);
return (newBlock != null) ? "block.minecraft." + newBlock.getKey().getKey() : null;
}
else {