Skip to content

Commit

Permalink
1.1.9: Initial 1.19.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
hevav committed Mar 9, 2023
1 parent 190f85b commit d6df6cc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.8
1.1.9
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

setGroup("net.elytrium")
setVersion("1.1.8")
setVersion("1.1.9")

compileJava {
getOptions().setEncoding("UTF-8")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/elytrium/limbofilter/LimboFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public void onProxyInitialization(ProxyInitializeEvent event) {
new PacketMapping(0x0F, ProtocolVersion.MINECRAFT_1_19, false),
new PacketMapping(0x10, ProtocolVersion.MINECRAFT_1_19_1, false),
new PacketMapping(0x0F, ProtocolVersion.MINECRAFT_1_19_3, false),
new PacketMapping(0x10, ProtocolVersion.MINECRAFT_1_19_4, false),
});

this.limboFactory.registerPacket(PacketDirection.CLIENTBOUND, SetEntityMetadata.class, SetEntityMetadata::new, new PacketMapping[]{
Expand All @@ -161,6 +162,7 @@ public void onProxyInitialization(ProxyInitializeEvent event) {
new PacketMapping(0x4D, ProtocolVersion.MINECRAFT_1_17, true),
new PacketMapping(0x50, ProtocolVersion.MINECRAFT_1_19_1, true),
new PacketMapping(0x4E, ProtocolVersion.MINECRAFT_1_19_3, true),
new PacketMapping(0x52, ProtocolVersion.MINECRAFT_1_19_4, true),
});

this.limboFactory.registerPacket(PacketDirection.CLIENTBOUND, SpawnEntity.class, SpawnEntity::new, new PacketMapping[]{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ public static int getID(ProtocolVersion protocolVersion) {
return 42;
} else if (protocolVersion.compareTo(ProtocolVersion.MINECRAFT_1_19_1) <= 0) {
return 45;
} else {
} else if (protocolVersion.compareTo(ProtocolVersion.MINECRAFT_1_19_3) <= 0) {
return 46;
} else {
return 56;
}
}

Expand Down

0 comments on commit d6df6cc

Please sign in to comment.