Ensure the new style listener gets the correct GamePhase in 1.6.4.

Also adding in a test image for our ServerPing wrapper.
This commit is contained in:
Kristian S. Stangeland 2013-12-10 16:38:23 +01:00
parent c23e5c98f8
commit 9a07979733
3 changed files with 6 additions and 1 deletions

View File

@ -1 +1,2 @@
target/
/logs

View File

@ -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) ||

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB