bancho.js 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/lib/Multiplayer/BanchoLobby.js +3 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://nodei.co/npm/bancho.js/)
|
|
4
4
|
[](https://git.cartooncraft.fr/ThePooN/bancho.js/commits/master)
|
|
5
5
|
|
|
6
|
-
## Current release: 0.12.
|
|
6
|
+
## Current release: 0.12.1
|
|
7
7
|
|
|
8
8
|
# Introduction
|
|
9
9
|
|
|
@@ -177,9 +177,8 @@ class BanchoLobby extends EventEmitter {
|
|
|
177
177
|
if(player.team == BanchoLobbyTeams[ret.team])
|
|
178
178
|
return;
|
|
179
179
|
player.team = BanchoLobbyTeams[ret.team];
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
player.state = BanchoLobbyPlayerStates.NotReady;
|
|
180
|
+
if(player.state == BanchoLobbyPlayerStates.Ready)
|
|
181
|
+
player.state = BanchoLobbyPlayerStates.NotReady;
|
|
183
182
|
this.emit("playerChangedTeam", {
|
|
184
183
|
player: player,
|
|
185
184
|
team: player.team
|
|
@@ -1263,4 +1262,4 @@ class BanchoLobby extends EventEmitter {
|
|
|
1263
1262
|
}
|
|
1264
1263
|
}
|
|
1265
1264
|
|
|
1266
|
-
module.exports = BanchoLobby;
|
|
1265
|
+
module.exports = BanchoLobby;
|