mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-07-01 08:54:57 +02:00
5e70cbd859
fixes #67
23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
From c10db955bcaf7fcee09f851df57779a2e36f98e5 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.7.4 (Apple Git-66)
|
|
|