From 083d8319eb941c5a510b170258e17a54e3128af0 Mon Sep 17 00:00:00 2001 From: NullBite Date: Sat, 24 Jun 2023 23:24:45 -0400 Subject: [PATCH] Fix sharedstate.commit() --- sharedstate.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sharedstate.lua b/sharedstate.lua index 162316f..1845cb4 100644 --- a/sharedstate.lua +++ b/sharedstate.lua @@ -207,10 +207,9 @@ function sharedstate.commit() -- } -- send_queue[key]=t -- end - - pings.sharedstate_unpack(state_queue) - state_queue={} + pings.sharedstate_recv_table(state_queue) + sharedstate.clear() end --- Clear a value from the shared state queue