Always create vanilla packets in the packet constructor.

This commit is contained in:
Kristian S. Stangeland 2012-11-03 06:48:58 +01:00
parent f16581cdf4
commit 263d085590

View File

@ -116,7 +116,7 @@ public class PacketConstructor {
} }
} }
Class<?> packetType = MinecraftRegistry.getPacketClassFromID(id); Class<?> packetType = MinecraftRegistry.getPacketClassFromID(id, true);
if (packetType == null) if (packetType == null)
throw new IllegalArgumentException("Could not find a packet by the id " + id); throw new IllegalArgumentException("Could not find a packet by the id " + id);