Server handles join packets nicely.

This commit is contained in:
2026-02-21 11:28:00 -05:00
parent e81b5e5b48
commit 226c4a8b52
7 changed files with 180 additions and 174 deletions

View File

@@ -27,7 +27,7 @@ Packet* packet_init(PacketType type, void* data) {
return packet;
}
Packet* packet_init_safe(char* type, void* data) {
Packet* packet_init_safe(const char* type, const void* data) {
PacketType t = packet_type_parse(type);
if (t == PACKET_TYPE_BAD) return NULL;