Private
Public Access
1
0

Rewritten sending helper and logic

This commit is contained in:
Jan Grießhaber
2026-01-10 18:24:52 +01:00
parent 8fc41c2e5a
commit 2e3ea7dd4d
14 changed files with 317 additions and 138 deletions

View File

@@ -2,7 +2,7 @@ function AddPowerPole(event)
local e = event.entity
if e then
storage.representativePoles[e.unit_number] = e
-- Update cache with new network
-- Invalidate cache
storage.networkCache = nil
end
end
@@ -187,6 +187,7 @@ function SendPowerStats()
end
end
powerPart[#powerPart + 1] = possiblePower
helpers.send_udp(udpAddress, table.concat(powerPart, "\n"), serverIndex)
--Send("---power-stats---",table.concat(powerPart,"\n"),200)
SendChunked(table.concat(powerPart, "\n"))
end
end