Skip to content

Commit

Permalink
fix server fire loading in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink committed Dec 19, 2023
1 parent e7dc712 commit 8399b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zap/src/output/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,13 @@ impl<'a> ServerOutput<'a> {
self.push(")\n");
self.indent();

self.push_write_event_id(id);

match ev.evty {
EvType::Reliable => self.push_line(&format!("load(player_map[{player}])")),
EvType::Unreliable => self.push_line("load_empty()"),
}

self.push_write_event_id(id);

self.push_stmts(&gen_ser(ty, value.into(), self.file.write_checks));

match ev.evty {
Expand Down

0 comments on commit 8399b56

Please sign in to comment.