Fix Smelting not recognizing the new 1.17 smeltables (like raw ores)

This commit is contained in:
nossr50
2021-06-11 14:22:33 -07:00
parent 6ff37c8baa
commit 5f0cc2b09a
5 changed files with 10 additions and 8 deletions

View File

@@ -57,7 +57,7 @@ public final class LocaleLoader {
*
* @return The properly formatted text component
*/
public static TextComponent getTextComponent(String key, Object... messageArguments) {
public static @NotNull TextComponent getTextComponent(@NotNull String key, Object... messageArguments) {
if (bundle == null) {
initialize();
}
@@ -113,7 +113,7 @@ public final class LocaleLoader {
return string;
}
public static TextComponent formatComponent(String string, Object... messageArguments) {
public static @NotNull TextComponent formatComponent(@NotNull String string, Object... messageArguments) {
if (messageArguments != null) {
MessageFormat formatter = new MessageFormat("");
formatter.applyPattern(string.replace("'", "''"));