From 313afffce7a823c30acf4853b083f9ca5132e879 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 29 Nov 2024 21:54:32 +0100 Subject: next commit --- packets/packet.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packets/packet.gd') diff --git a/packets/packet.gd b/packets/packet.gd index 9f82782..33db0b1 100644 --- a/packets/packet.gd +++ b/packets/packet.gd @@ -15,7 +15,7 @@ func get_byte_length() -> int: ## [param packet_length] is only needed when the packet has a variable length. func get_header(packet_length: int = 0) -> PackedByteArray: var bytes = PackedByteArray([0,0]) - bytes.encode_u16(0, self.header) + bytes.encode_u16(0, self.HEADER) if packet_length > 0: bytes.resize(4) -- cgit v1.2.3