Skip to content

Commit

Permalink
bump to 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
imaron85 committed Jan 9, 2024
1 parent b1907ae commit f1063d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings(loom.layered {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.19.4:2023.06.26@zip")
parchment("org.parchmentmc.data:parchment-1.20.3:2023.12.31@zip")
})
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

modImplementation("maven.modrinth:open-parties-and-claims:fabric-1.19.4-0.20.4")
modRuntimeOnly("fuzs.forgeconfigapiport:forgeconfigapiport-fabric:6.0.2") {
modImplementation("maven.modrinth:open-parties-and-claims:fabric-1.20.4-0.20.4")
modRuntimeOnly("fuzs.forgeconfigapiport:forgeconfigapiport-fabric:20.4.0") {
exclude(group: "net.fabricmc")
exclude(group: "net.fabricmc.fabric-api")
}

implementation("com.github.BlueMap-Minecraft:BlueMapAPI:v2.6.2")
modRuntimeOnly("maven.modrinth:bluemap:3.20-fabric-1.19.4")
modRuntimeOnly("maven.modrinth:bluemap:3.20-fabric-1.20")

include(implementation("org.quiltmc.qup:json:0.2.0"))
}
Expand Down
7 changes: 4 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.19.4
minecraft_version=1.20.4
loader_version=0.15.3

# Mod Properties
mod_version = 1.0.3
mod_version = 1.0.4
maven_group = io.github.gaming32
archives_base_name = opac-bluemap-integration

# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.87.2+1.19.4
fabric_version=0.92.1+1.20.4

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.ChatFormatting;
import net.minecraft.commands.arguments.TimeArgument;
import net.minecraft.core.Registry;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceKey;
import net.minecraft.server.MinecraftServer;
Expand Down Expand Up @@ -69,7 +68,7 @@ public void onInitialize() {
}
updateClaims(api);
ctx.getSource().sendSuccess(
Component.literal("BlueMap OPaC claims refreshed").withStyle(ChatFormatting.GREEN),
() -> Component.literal("BlueMap OPaC claims refreshed").withStyle(ChatFormatting.GREEN),
true
);
return Command.SINGLE_SUCCESS;
Expand All @@ -78,7 +77,7 @@ public void onInitialize() {
.then(literal("refresh-in")
.executes(ctx -> {
ctx.getSource().sendSuccess(
Component.literal("OPaC BlueMap will refresh in ").append(
() -> Component.literal("OPaC BlueMap will refresh in ").append(
Component.literal((updateIn / 20) + "s").withStyle(ChatFormatting.GREEN)
),
true
Expand All @@ -89,7 +88,7 @@ public void onInitialize() {
.executes(ctx -> {
updateIn = IntegerArgumentType.getInteger(ctx, "time");
ctx.getSource().sendSuccess(
Component.literal("OPaC BlueMap will refresh in ").append(
() -> Component.literal("OPaC BlueMap will refresh in ").append(
Component.literal((updateIn / 20) + "s").withStyle(ChatFormatting.GREEN)
),
true
Expand All @@ -101,7 +100,7 @@ public void onInitialize() {
.then(literal("refresh-every")
.executes(ctx -> {
ctx.getSource().sendSuccess(
Component.literal("OPaC BlueMap auto refreshes every ").append(
() -> Component.literal("OPaC BlueMap auto refreshes every ").append(
Component.literal((CONFIG.getUpdateInterval() / 20) + "s").withStyle(ChatFormatting.GREEN)
),
true
Expand All @@ -117,7 +116,7 @@ public void onInitialize() {
}
saveConfig();
ctx.getSource().sendSuccess(
Component.literal("OPaC BlueMap will auto refresh every ").append(
() -> Component.literal("OPaC BlueMap will auto refresh every ").append(
Component.literal((interval / 20) + "s").withStyle(ChatFormatting.GREEN)
),
true
Expand All @@ -133,7 +132,7 @@ public void onInitialize() {
updateIn = CONFIG.getUpdateInterval();
}
ctx.getSource().sendSuccess(
Component.literal("Reloaded OPaC BlueMap config").withStyle(ChatFormatting.GREEN),
() -> Component.literal("Reloaded OPaC BlueMap config").withStyle(ChatFormatting.GREEN),
true
);
return Command.SINGLE_SUCCESS;
Expand Down

0 comments on commit f1063d3

Please sign in to comment.