This commit is contained in:
illegitimate-egg 2025-03-03 01:25:57 +00:00
parent 6e8ce4c91e
commit 240c36df23

View File

@ -69,13 +69,14 @@ fn init(players, world) {
}
}
playerData[event.player.to_string()] = player_data;
return event;
});
ctx.add_event_listener("player_leave", |event| {
if player_data != () {
playerData[event.player.to_string()].command_step = 0;
}
});
ctx