Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions server/multiplayer/ServerMultiplayerRoomMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,6 @@ const ServerMultiplayerRoomMixin = (RoomClass) => class extends RoomClass {
return;
}

this.lastVotekickTime[userId] = currentTime;

for (const votekick of this.votekickList) {
if (votekick.exists(targetId)) { return; }
}
Expand All @@ -421,6 +419,7 @@ const ServerMultiplayerRoomMixin = (RoomClass) => class extends RoomClass {
});

const threshold = Math.max(Math.floor(activePlayers * 3 / 4), 2);
this.lastVotekickTime[userId] = currentTime;
const votekick = new Votekick(targetId, threshold, []);
votekick.vote(userId);
this.votekickList.push(votekick);
Expand Down
Loading