Skip to content

Commit

Permalink
fix: remote_folder should apply to tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
sasial-dev committed Aug 13, 2024
1 parent fc7cb48 commit c354fbf
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions zap/src/output/tooling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,25 @@ impl<'src> ToolingOutput<'src> {
self.indent();

self.push_line(&format!(
"local reliable = ReplicatedStorage:FindFirstChild(\"{}_RELIABLE\")",
"local remotes = ReplicatedStorage:FindFirstChild(\"{}\")",
self.config.remote_folder
));

self.push_line("if not remotes then");
self.indent();

self.push_line("return");

self.dedent();
self.push_line("end");
self.push("\n");

self.push_line(&format!(
"local reliable = remotes:FindFirstChild(\"{}_RELIABLE\")",
self.config.remote_scope
));
self.push_line(&format!(
"local unreliable = ReplicatedStorage:FindFirstChild(\"{}_UNRELIABLE\")",
"local unreliable = remotes:FindFirstChild(\"{}_UNRELIABLE\")",
self.config.remote_scope
));
self.push("\n");
Expand Down

0 comments on commit c354fbf

Please sign in to comment.