Skip to content

Commit

Permalink
Mark 1.20.4 as compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Dec 7, 2023
1 parent a7349fa commit acbc044
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ private void addShareWorldButton(CallbackInfo ci) {
//#else
//$$ wh$shareButton = addButton(
//#endif
WorldHostScreen.button(Components.translatable("world-host.share_world"), b -> {
WorldHostScreen.button(Components.translatable("world-host.share_world"), b ->
list.getSelectedOpt().ifPresent(worldListEntry -> {
wh$shareButtonPressed = true;
worldListEntry.joinWorld();
});
}).pos(width / 2 - 50, height - 52)
})
).pos(width / 2 - 50, height - 52)
.width(100)
.build()
);
Expand Down Expand Up @@ -128,9 +128,9 @@ private void updateShareButtonStatus(LevelSummary levelSummary, CallbackInfo ci)
//#else
//$$ private void updateShareButtonStatus(
//$$ boolean active,
//$$ //#if MC > 1.19.2
//$$ boolean bl2,
//$$ //#endif
//#if MC > 1.19.2
//$$ boolean bl2,
//#endif
//$$ CallbackInfo ci
//$$ ) {
//$$ if (wh$shareButton != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static MutableComponent translatable(@Translatable(foldMethod = true) Str
//#if MC >= 1.20.3
return Component.translatableEscape(key, args);
//#elseif MC >= 1.19.1
//$$return Component.translatable(key, args);
//$$ return Component.translatable(key, args);
//#else
//$$ return new TranslatableComponent(key, args);
//#endif
Expand Down
11 changes: 6 additions & 5 deletions version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,12 @@ modrinth {
uploadFile.set(tasks.named("remapJar"))
additionalFiles.add(tasks.named("sourcesJar"))
gameVersions.add(mcVersionString)
if (mcVersion == 1_19_04) {
gameVersions.add("23w13a_or_b")
} else if (mcVersion == 1_20_01) {
gameVersions.add("1.20")
}
when (mcVersion) {
1_19_04 -> "23w13a_or_b"
1_20_01 -> "1.20"
1_20_03 -> "1.20.4" // TODO: Invert this when 1.20.4 is buildable
else -> null
}?.let(gameVersions::add)
loaders.add(loaderName)
if (isFabric) {
loaders.add("quilt")
Expand Down

0 comments on commit acbc044

Please sign in to comment.