From d0e3698ee4e9c5041049e549c818c59d10e23464 Mon Sep 17 00:00:00 2001 From: Not Date: Fri, 13 Oct 2023 21:31:18 +0200 Subject: [PATCH] answer command stream only once --- ghost.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghost.lua b/ghost.lua index eb39b0b..e24111a 100644 --- a/ghost.lua +++ b/ghost.lua @@ -406,6 +406,10 @@ Server = { transmitters = {}, callback = function(cmd, handle) + if handle.transmitters[cmd] then + return + end + local mapindex = Index:getMap(gamemap, mapChecksum(gamemap)) local header = assert(mapindex[tonumber(cmd)]) local data = Ghost.read(header, Ghost.stringReader)