answer command stream only once

This commit is contained in:
Not 2023-10-13 21:31:18 +02:00
parent 12ca9aca54
commit d0e3698ee4
1 changed files with 4 additions and 0 deletions

View File

@ -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)