mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 00:17:58 +01:00
Fix velocity IP forwarding
This commit is contained in:
parent
6e0202c33b
commit
2f53388b9f
@ -48,7 +48,7 @@ public class LoginPluginResponsePacket implements ClientPreplayPacket {
|
||||
|
||||
// Velocity
|
||||
if (VelocityProxy.isEnabled() && channel.equals(VelocityProxy.PLAYER_INFO_CHANNEL)) {
|
||||
if (data != null) {
|
||||
if (data != null && data.length > 0) {
|
||||
BinaryReader reader = new BinaryReader(data);
|
||||
success = VelocityProxy.checkIntegrity(reader);
|
||||
if (success) {
|
||||
@ -103,7 +103,7 @@ public class LoginPluginResponsePacket implements ClientPreplayPacket {
|
||||
writer.writeVarInt(messageId);
|
||||
writer.writeBoolean(successful);
|
||||
|
||||
if(successful) {
|
||||
if (successful) {
|
||||
writer.writeBytes(data);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user