mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-24 03:25:29 +01:00
Always create vanilla packets in the packet constructor.
This commit is contained in:
parent
f16581cdf4
commit
263d085590
@ -116,7 +116,7 @@ public class PacketConstructor {
|
||||
}
|
||||
}
|
||||
|
||||
Class<?> packetType = MinecraftRegistry.getPacketClassFromID(id);
|
||||
Class<?> packetType = MinecraftRegistry.getPacketClassFromID(id, true);
|
||||
|
||||
if (packetType == null)
|
||||
throw new IllegalArgumentException("Could not find a packet by the id " + id);
|
||||
|
Loading…
Reference in New Issue
Block a user