From 96dd03f29c8100cb0de5f7f9f78ec5efe59431f6 Mon Sep 17 00:00:00 2001 From: Ketasaja Date: Tue, 24 Sep 2024 12:33:09 +0000 Subject: [PATCH] Freeze more tables --- zap/src/output/luau/client.rs | 1 + zap/src/output/luau/server.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/zap/src/output/luau/client.rs b/zap/src/output/luau/client.rs index dd5d66df..b26dd91a 100644 --- a/zap/src/output/luau/client.rs +++ b/zap/src/output/luau/client.rs @@ -920,6 +920,7 @@ impl<'src> ClientOutput<'src> { self.push_line("end"); } self.push_line(""); + self.push_line("table.freeze(polling_payload_queues)"); self.push_line("table.freeze(polling_iterators)"); self.push_line(""); } diff --git a/zap/src/output/luau/server.rs b/zap/src/output/luau/server.rs index 80bd5e3c..d1af0289 100644 --- a/zap/src/output/luau/server.rs +++ b/zap/src/output/luau/server.rs @@ -984,6 +984,8 @@ impl<'a> ServerOutput<'a> { self.push_line("end"); } self.push_line(""); + self.push_line("table.freeze(polling_player_queues)"); + self.push_line("table.freeze(polling_payload_queues)"); self.push_line("table.freeze(polling_iterators)"); self.push_line(""); }