diff --git a/build.gradle b/build.gradle index 562f9a6..dc9e9df 100644 --- a/build.gradle +++ b/build.gradle @@ -12,9 +12,11 @@ preprocess { //def mc1193 = createNode('1.19.3', 1_19_03, 'yarn') def mc1194 = createNode('1.19.4', 1_19_04, 'yarn') def mc1201 = createNode('1.20.1', 1_20_01, 'yarn') + def mc1202 = createNode('1.20.2', 1_20_02, 'yarn') // mapping difference map // base 1194 -> 1193 -> 1192 ->1190-> 118 -> 117 -> 116 + mc1202.link(mc1201, file('versions/mapping-1.20.2-1.20.1.txt')) mc1201.link(mc1194, file('versions/mapping-1.20.1-1.19.4.txt')) //mc1194.link(mc1193, file('versions/mapping-1.19.4-1.19.3.txt')) //mc1193.link(mc1192, file('versions/mapping-1.19.3-1.19.2.txt')) diff --git a/external/essential-client-1.20.1-1.3.6.jar b/external/essential-client-1.20.1-1.3.6.jar new file mode 100644 index 0000000..f60acd9 Binary files /dev/null and b/external/essential-client-1.20.1-1.3.6.jar differ diff --git a/settings.gradle b/settings.gradle index 6be6ae0..302b5b0 100644 --- a/settings.gradle +++ b/settings.gradle @@ -32,7 +32,8 @@ def versions = Arrays.asList( //"1.19.2", //"1.19.3", "1.19.4", - "1.20.1" + "1.20.1", + "1.20.2" ) for (String version : versions) { diff --git a/src/main/java/io/github/eatmyvenom/litematicin/mixin/MinecraftClient/ClientPlayNetworkHandlerMixin.java b/src/main/java/io/github/eatmyvenom/litematicin/mixin/MinecraftClient/ClientPlayNetworkHandlerMixin.java index cb2a842..44a0cde 100644 --- a/src/main/java/io/github/eatmyvenom/litematicin/mixin/MinecraftClient/ClientPlayNetworkHandlerMixin.java +++ b/src/main/java/io/github/eatmyvenom/litematicin/mixin/MinecraftClient/ClientPlayNetworkHandlerMixin.java @@ -69,11 +69,12 @@ private void onUpdateSlots(ScreenHandlerSlotUpdateS2CPacket packet, CallbackInfo } cancelIfRequired(ci); } - + //#if MC<=12001 @Inject(method = "onDisconnect", at = @At("HEAD")) private void handleDisconnect(DisconnectS2CPacket packet, CallbackInfo ci) { isSynced = false; } + //#endif @Inject(method = "onUpdateSelectedSlot", at = @At("HEAD"), cancellable = true, require = 0) private void onUpdateSelectSlots(UpdateSelectedSlotS2CPacket packet, CallbackInfo ci) { diff --git a/versions/1.20.2/gradle.properties b/versions/1.20.2/gradle.properties new file mode 100644 index 0000000..56f56c3 --- /dev/null +++ b/versions/1.20.2/gradle.properties @@ -0,0 +1,13 @@ +# Fabric Properties + # check these on https://fabricmc.net/use + minecraft_version=1.20.2 + yarn_mappings=1.20.2+build.1 + fabricapi_version=0.90.0+1.20.2 + minecraft_version_out =1.20.2 + +# Mod Properties + malilib_projectid=303119 + malilib_fileid=4788432 + litematica_fileid=4789765 + litematica_projectid=308892 + essentialclient_filename=essential-client-1.20.1-1.3.6.jar diff --git a/versions/mapping-1.20.2-1.20.1.txt b/versions/mapping-1.20.2-1.20.1.txt new file mode 100644 index 0000000..621e5c4 --- /dev/null +++ b/versions/mapping-1.20.2-1.20.1.txt @@ -0,0 +1 @@ +net.minecraft.network.packet.s2c.play.ScreenHandlerSlotUpdateS2CPacket getStack() getItemStack() \ No newline at end of file