Skip to content

Commit

Permalink
added 1.18 support
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranCZ committed Jul 13, 2024
1 parent db08437 commit 8689d67
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ group = project.maven_group
def mappingsVersions = [
11605: "1.16.5+build.10",
11701: "1.17.1+build.65",
11800: "1.18+build.1",
11802: "1.18.2+build.4",
11904: "1.19.4+build.2",
12001: "1.20.1+build.10",
Expand All @@ -50,6 +51,7 @@ def mappingsVersions = [
def fabricApiVersions = [
11605: "0.42.0+1.16",
11701: "0.46.1+1.17",
11800: "0.44.0+1.18",
11802: "0.77.0+1.18.2",
11904: "0.87.2+1.19.4",
12001: "0.92.2+1.20.1",
Expand Down
4 changes: 3 additions & 1 deletion root.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ preprocess {
val mc12001 = createNode("1.20.1", 12001, "yarn")
val mc11904 = createNode("1.19.4", 11904, "yarn")
val mc11802 = createNode("1.18.2", 11802, "yarn")
val mc11800 = createNode("1.18", 11800, "yarn")
val mc11701 = createNode("1.17.1", 11701, "yarn")
val mc11605 = createNode("1.16.5", 11605, "yarn")

Expand All @@ -32,6 +33,7 @@ preprocess {
mc12002.link(mc12001)
mc12001.link(mc11904)
mc11904.link(mc11802, file("versions/mapping-1.19.4-1.18.2.txt"))
mc11802.link(mc11701, file("versions/mapping-1.18.2-1.17.1.txt"))
mc11802.link(mc11800)
mc11800.link(mc11701, file("versions/mapping-1.18.2-1.17.1.txt"))
mc11701.link(mc11605, file("versions/mapping-1.17.1-1.16.5.txt"))
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ listOf(
"1.20.1",
"1.19.4",
"1.18.2",
"1.18",
"1.17.1",
"1.16.5"
).forEach { version ->
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/adris/altoclef/mixins/LoadChunkMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class LoadChunkMixin {
method = "loadChunkFromPacket",
at = @At("RETURN")
)
//#if MC >= 11802
//#if MC >= 11800
private void onLoadChunk(int x, int z, PacketByteBuf buf, NbtCompound nbt, Consumer<net.minecraft.network.packet.s2c.play.ChunkData.BlockEntityVisitor> consumer, CallbackInfoReturnable<WorldChunk> cir) {
//#elseif MC >= 11701
//$$ private void onLoadChunk(int x, int z, net.minecraft.world.biome.source.BiomeArray biomes, PacketByteBuf buf, NbtCompound nbt, BitSet bitSet, CallbackInfoReturnable<WorldChunk> cir) {
Expand Down

0 comments on commit 8689d67

Please sign in to comment.