Skip to content

Commit

Permalink
fix incorrect output ordering for remote variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink committed Dec 16, 2023
1 parent 06448d5 commit 8daa7c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions zap/src/output/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ impl<'a> Display for ClientFile<'a> {
}

write!(f, "{}", include_str!("base.luau"))?;
write!(f, "{}", include_str!("client.luau"))?;

writeln!(f, "local events = table.create({})", file.ev_decls.len())?;

Expand Down Expand Up @@ -143,9 +144,6 @@ impl<'a> Display for ClientFile<'a> {
writeln!(f, "events[{id}] = {{}}")?;
}

// Fire Reliable
write!(f, "{}", include_str!("client.luau"))?;

writeln!(f, "return {{")?;

// Output Fire Return
Expand Down
4 changes: 1 addition & 3 deletions zap/src/output/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ impl<'a> Display for ServerFile<'a> {
}

write!(f, "{}", include_str!("base.luau"))?;
write!(f, "{}", include_str!("server.luau"))?;

writeln!(f, "local events = table.create({})", file.ev_decls.len())?;

Expand Down Expand Up @@ -153,9 +154,6 @@ impl<'a> Display for ServerFile<'a> {
writeln!(f, "events[{id}] = {{}}")?;
}

// Fire Reliable
write!(f, "{}", include_str!("server.luau"))?;

writeln!(f, "return {{")?;

// Output Fire Return
Expand Down

0 comments on commit 8daa7c4

Please sign in to comment.