Skip to content

Commit

Permalink
add 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aria1th committed Oct 18, 2023
1 parent d015001 commit 880e086
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down
Binary file added external/essential-client-1.20.1-1.3.6.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
13 changes: 13 additions & 0 deletions versions/1.20.2/gradle.properties
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions versions/mapping-1.20.2-1.20.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
net.minecraft.network.packet.s2c.play.ScreenHandlerSlotUpdateS2CPacket getStack() getItemStack()

0 comments on commit 880e086

Please sign in to comment.