0190c10

Branches > main > 0190c10 > files / src / net / bowmap

name

Grahp, 2026-03-14

Commit: 0190c10a9801808812624b1bc587f6cbd919225d
Parent: 169f063

1 changed file:

src/net/bowmap/packet/server.clj modified (view file)

@@ -150,10 +150,10 @@     2. No schema exists for that packet id     3. 'buf' is not properly framed     4. The contents of 'buf' are not a valid packet"-  [buf state]-  (let [numeric-id (read/read-varint! buf)+  [packet-buf state]+  (let [numeric-id (read/read-varint! packet-buf)         packet-id (packet-ids {::state/state state ::pk/numeric-id numeric-id})         dedec (packets packet-id)]     (if dedec-      (dedec buf)+      (dedec packet-buf)       (raise "Failed to decode packet, no such packet with that id." {:id numeric-id :state state :packet-id packet-id}))))