Skip to content

Commit

Permalink
chore(deps): update dependencies to Minecraft 1.21 (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
axieum committed Jun 27, 2024
1 parent 53eba45 commit e49efa3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ mod_version = 2.1.0+1.20.6
## {x-release-please-end}

# Fabric
minecraft_version = 1.20.6
minecraft_version = 1.21
loader_version = 0.15.11
yarn_mappings = 1.20.6+build.1
fabric_version = 0.97.8+1.20.6
yarn_mappings = 1.21+build.2
fabric_version = 0.100.1+1.21

# Dependencies
checkstyle_version = 10.15.0
Expand All @@ -19,7 +19,7 @@ junit_jupiter_version = 5.10.2

# CurseForge
cf_project_id = 502254
cf_game_versions = Fabric, Java 21, 1.20.5, 1.20.6
cf_game_versions = Fabric, Java 21, 1.21
cf_relations_required = fabric-api
cf_relations_optional =
cf_relations_embedded = cloth-config
Expand All @@ -28,7 +28,7 @@ cf_relations_incompatible =

# Modrinth
mr_project_id = DoVQa3oa
mr_game_versions = 1.20.5, 1.20.6
mr_game_versions = 1.20.5, 1.21
mr_relations_required = P7dR8mSH
mr_relations_optional =
mr_relations_incompatible =
Expand Down
6 changes: 3 additions & 3 deletions minecord-api/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ mod_version = 2.0.1+1.20.6
## {x-release-please-end}

# Dependencies
cloth_config_version = 14.0.126
cloth_config_version = 15.0.127
emoji_java_version = 5.1.1
fabric_tailor_version = 2.3.1
fabric_tailor_version = 2.4.2
jda_version = 5.0.0-beta.23
log4j_version = 2.23.1
placeholder_api_version = 2.4.0-pre.1+1.20.5
placeholder_api_version = 2.4.0-pre.2+1.21
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ private MinecordPlaceholders() {}
public static void register()
{
// minecord:player (or server)
Placeholders.register(new Identifier("minecord", "player"), (ctx, arg) ->
Placeholders.register(Identifier.of("minecord", "player"), (ctx, arg) ->
PlaceholderResult.value(
ctx.player() != null
? ctx.player().getDisplayName().getString()
: getConfig().i18n.serverName
)
);
// minecord:world
Placeholders.register(new Identifier("minecord", "world"), (ctx, arg) ->
Placeholders.register(Identifier.of("minecord", "world"), (ctx, arg) ->
PlaceholderResult.value(ctx.world() != null ? StringUtils.getWorldName(ctx.world()) : "∞")
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ public void deriveWorldName()
{
assertEquals(
"Overworld",
StringUtils.deriveWorldName(new Identifier("minecraft", "overworld"))
StringUtils.deriveWorldName(Identifier.of("minecraft", "overworld"))
);
assertEquals(
"Deep Dark",
StringUtils.deriveWorldName(new Identifier("extrautils", "the_deep_dark"))
StringUtils.deriveWorldName(Identifier.of("extrautils", "the_deep_dark"))
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.awt.Color;
import java.io.File;
import java.lang.management.ManagementFactory;
import java.nio.file.Path;
import java.time.Duration;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -143,7 +144,9 @@ public void onServerShutdown(MinecraftServer server, @Nullable CrashReport crash
// The server stopped due to an error
} else {
// Fetch the crash report file
final Optional<File> file = Optional.ofNullable(crashReport.getFile()).filter(File::exists);
final Optional<File> file = Optional.ofNullable(crashReport.getFile())
.map(Path::toFile)
.filter(File::exists);

// Dispatch the message
DiscordDispatcher.embed(
Expand Down

0 comments on commit e49efa3

Please sign in to comment.