Skip to content

Commit

Permalink
Try a few 1.20.3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Dec 6, 2023
1 parent 86b5cd5 commit 7a55e02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
public class WorldHostComponents {
public static final Component FRIENDS = Components.translatable("world-host.friends");
public static final Component SERVERS = Components.translatable("world-host.servers");
public static final Component PLAY_TEXT = Component.translatable("world-host.play_world");
public static final Component PLAY_TEXT = Components.translatable("world-host.play_world");
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ public static MutableComponent translatable(@Translatable(foldMethod = true) Str
}

public static MutableComponent translatable(@Translatable(foldMethod = true) String key, Object... args) {
//#if MC >= 1.19.1
return Component.translatable(key, args);
//#if MC >= 1.20.3
return Component.translatableEscape(key, args);
//#elseif MC >= 1.19.1
//$$return Component.translatable(key, args);
//#else
//$$ return new TranslatableComponent(key, args);
//#endif
Expand Down

0 comments on commit 7a55e02

Please sign in to comment.