1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-28 00:12:16 +00:00

Fix MixinLanguage mapping.

There's no DEFAULT field to shadow in 1.16, so we'll add it ourselves.
This commit is contained in:
Toad-Dev 2021-12-26 14:28:44 -08:00
parent 24ec601e74
commit e0a337a6f0

View File

@ -42,12 +42,11 @@ public class MixinLanguage
@Shadow
@Final
private static Logger LOGGER;
@Shadow
@Final
private static String DEFAULT;
private static final String DEFAULT = "en_us";
@Shadow
private static void loadFromJson( InputStream inputStream, BiConsumer<String, String> entryConsumer )
public static void load( InputStream inputStream, BiConsumer<String, String> entryConsumer )
{
}
@ -58,7 +57,7 @@ public class MixinLanguage
try( InputStream inputStream = Files.newInputStream( path ) )
{
loadFromJson( inputStream, biConsumer );
load( inputStream, biConsumer );
}
catch( JsonParseException | IOException e )
{