mirror of
https://github.com/PaperMC/Waterfall.git
synced 2025-02-02 21:11:47 +01:00
19c4c95325
Merges #25
23 lines
1011 B
Diff
23 lines
1011 B
Diff
From c4b8b2246bf27e3eba36cda3e719ada63ba7ddcf Mon Sep 17 00:00:00 2001
|
|
From: Techcable <Techcable@techcable.net>
|
|
Date: Wed, 6 Apr 2016 23:46:00 -0700
|
|
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
|
|
index db2843f..4decbb2 100644
|
|
--- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
|
|
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java
|
|
@@ -346,7 +346,7 @@ public enum Protocol
|
|
{
|
|
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.6.3
|
|
|