2016-12-21 08:34:59 +01:00
|
|
|
From 8123715386948ff4bf580cd258caeaebccb3f26c Mon Sep 17 00:00:00 2001
|
2016-06-06 19:41:33 +02:00
|
|
|
From: Techcable <Techcable@techcable.net>
|
2016-06-15 18:02:53 +02:00
|
|
|
Date: Wed, 6 Apr 2016 23:46:00 -0700
|
2016-06-06 19:41:33 +02:00
|
|
|
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-12-21 08:34:59 +01:00
|
|
|
index 9153303..e62a38b 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-12-21 08:34:59 +01:00
|
|
|
@@ -350,7 +350,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 );
|
|
|
|
}
|
|
|
|
--
|
2016-12-21 08:34:59 +01:00
|
|
|
2.7.4
|
2016-06-06 19:41:33 +02:00
|
|
|
|