2016-06-09 08:08:37 +02:00
|
|
|
From 2048b1349a89191ead3891d548495185821e4d10 Mon Sep 17 00:00:00 2001
|
2016-06-06 19:41:33 +02:00
|
|
|
From: Techcable <Techcable@techcable.net>
|
|
|
|
Date: Mon, 6 Jun 2016 11:41:10 -0600
|
|
|
|
Subject: [PATCH] Better debug checks
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
|
2016-06-09 08:08:37 +02:00
|
|
|
index db2843f..4decbb2 100644
|
2016-06-06 19:41:33 +02:00
|
|
|
--- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
|
|
|
|
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
|
2016-06-09 08:08:37 +02:00
|
|
|
@@ -346,7 +346,7 @@ public enum Protocol
|
2016-06-06 19:41:33 +02:00
|
|
|
{
|
|
|
|
throw new BadPacketException( "Unsupported protocol version" );
|
|
|
|
}
|
|
|
|
- Preconditions.checkArgument( protocolData.packetMap.containsKey( packet ), "Cannot get ID for packet " + packet );
|
|
|
|
+ Preconditions.checkArgument( protocolData.packetMap.containsKey( packet ), "Cannot get ID for packet %s in state %s", packet, protocolPhase);
|
|
|
|
|
|
|
|
return protocolData.packetMap.get( packet );
|
|
|
|
}
|
|
|
|
--
|
|
|
|
2.8.3
|
|
|
|
|