Skip to content

Commit

Permalink
Fix optional data callbacks (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
nezuo authored Jan 9, 2024
1 parent 8e40ffb commit 75f7763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zap/src/output/luau/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ impl<'src> ClientOutput<'src> {

self.push_line(&format!("event_queue[{id}] = {{}}"));
} else {
self.push_line(&format!("for 1, event_queue[{id}] do"));
self.push_line(&format!("for _ = 1, event_queue[{id}] do"));
self.indent();

if ev.call == EvCall::SingleSync {
Expand Down Expand Up @@ -603,7 +603,7 @@ impl<'src> ClientOutput<'src> {

self.push_line(&format!("event_queue[{id}] = {{}}"));
} else {
self.push_line(&format!("for 1, event_queue[{id}] do"));
self.push_line(&format!("for _ = 1, event_queue[{id}] do"));
self.indent();

if ev.call == EvCall::ManySync {
Expand Down

0 comments on commit 75f7763

Please sign in to comment.