Ensure the new style listener gets the correct GamePhase in 1.6.4.
Also adding in a test image for our ServerPing wrapper.
Dieser Commit ist enthalten in:
Ursprung
c23e5c98f8
Commit
9a07979733
1
ProtocolLib/.gitignore
vendored
1
ProtocolLib/.gitignore
vendored
@ -1 +1,2 @@
|
||||
target/
|
||||
/logs
|
||||
|
@ -6,6 +6,7 @@ import com.comphenix.protocol.PacketType;
|
||||
import com.comphenix.protocol.Packets;
|
||||
import com.comphenix.protocol.concurrency.IntegerSet;
|
||||
import com.comphenix.protocol.events.ConnectionSide;
|
||||
import com.comphenix.protocol.utility.MinecraftReflection;
|
||||
import com.comphenix.protocol.utility.MinecraftVersion;
|
||||
|
||||
/**
|
||||
@ -78,6 +79,9 @@ class LoginPackets {
|
||||
* @return TRUE if it may, FALSE otherwise.
|
||||
*/
|
||||
public boolean isLoginPacket(PacketType type) {
|
||||
if (!MinecraftReflection.isUsingNetty())
|
||||
return isLoginPacket(type.getLegacyId(), type.getSender().toSide());
|
||||
|
||||
return PacketType.Login.Client.getInstance().hasMember(type) ||
|
||||
PacketType.Login.Server.getInstance().hasMember(type) ||
|
||||
PacketType.Status.Client.getInstance().hasMember(type) ||
|
||||
|
BIN
ProtocolLib/src/test/resources/tux.png
Normale Datei
BIN
ProtocolLib/src/test/resources/tux.png
Normale Datei
Binäre Datei nicht angezeigt.
Nachher Breite: | Höhe: | Größe: 4.3 KiB |
In neuem Issue referenzieren
Einen Benutzer sperren