diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-28 18:38:42 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-28 18:38:42 +0100 |
commit | e8aa9f50886b66d525307a58d71036e6fd3d4aa1 (patch) | |
tree | ce6f59eecf1eb3e1ba2794166c09623d8a2d7d83 /packets/request_character_list_success_packet.gd | |
parent | c89f25f59aa493d95bcac8e75ca5cdd57a0403e7 (diff) |
next commit
Diffstat (limited to 'packets/request_character_list_success_packet.gd')
-rw-r--r-- | packets/request_character_list_success_packet.gd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packets/request_character_list_success_packet.gd b/packets/request_character_list_success_packet.gd index 0b6cea8..431e8ca 100644 --- a/packets/request_character_list_success_packet.gd +++ b/packets/request_character_list_success_packet.gd @@ -12,8 +12,9 @@ static func from_bytes(bytes: PackedByteArray): return packet + static func from_bytes_via_peer(peer: StreamPeer): - var _header = peer.get_data(4) + var _header = peer.get_data(4) # 2 = header, 2 = length var remaining_bytes = peer.get_data(peer.get_available_bytes()) return from_bytes(remaining_bytes[1]) |