Make minecraft packet instead of forge when decoding CRPM reset.

This commit is contained in:
Adrian Bergqvist 2023-05-02 16:28:41 +02:00
parent cfa7ecad21
commit 30e90556ff
No known key found for this signature in database
GPG Key ID: 3B3DA43224B79417
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ plugins {
}
group = "org.adde0109"
version = "1.3.4-beta"
version = "1.3.3-beta"
repositories {
mavenCentral()

View File

@ -40,7 +40,7 @@ import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_19;
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_19_3;
import static com.velocitypowered.proxy.protocol.packet.brigadier.ArgumentIdentifier.mapSet;
@Plugin(id = "ambassador", name = "Ambassador", version = "1.3.4-beta", authors = {"adde0109"})
@Plugin(id = "ambassador", name = "Ambassador", version = "1.3.3-beta", authors = {"adde0109"})
public class Ambassador {
public ProxyServer server;

View File

@ -27,7 +27,7 @@ public class FML2CRPMResetCompleteDecoder extends ChannelInboundHandlerAdapter {
boolean success = buf.readBoolean();
if (id == 98) {
try {
IForgeLoginWrapperPacket packet = new GenericForgeLoginWrapperPacket(buf, id);
MinecraftPacket packet = new LoginPluginResponse(id, success, buf.readRetainedSlice(buf.readableBytes()));
ctx.fireChannelRead(packet);
} finally {
buf.release();