Skip to content

Commit

Permalink
Fix plot dropping issue (#59)
Browse files Browse the repository at this point in the history
* fix issue #58

* really fixed it this time
  • Loading branch information
EwanFox authored Jan 20, 2022
1 parent c0e8e88 commit f03e005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,8 @@ impl Drop for Plot {
);
}

for index in 0..self.players.len() {
let uuid = self.players[index].uuid;
while !self.players.is_empty() {
let uuid = self.players[0].uuid;
let player = self.leave_plot(uuid);
self.message_sender
.send(Message::PlayerLeavePlot(player))
Expand Down

0 comments on commit f03e005

Please sign in to comment.