mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fixed NPE on CustomPayload packets with 0 data
This commit is contained in:
1 parent
43ac9d6799
commit
be1dd4934a
1 file changed
+5
@@ -406,6 +406,11 @@ public class MessageManager
|
||||
|
||||
public void dispatchIncomingMessage(NetworkManager manager, String channel, byte[] data)
|
||||
{
|
||||
if (data == null)
|
||||
{
|
||||
data = new byte[0];
|
||||
}
|
||||
|
||||
if (channel.equals("Forge"))
|
||||
{
|
||||
if (ForgeHooks.getPacketHandler() != null)
|
||||
|
||||
Reference in new issue
Block a user