bancho.js 0.10.0 → 0.10.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/BanchoMessage.js +2 -2
- package/lib/Multiplayer/BanchoLobby.js +1 -1
- 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.10.
|
|
6
|
+
## Current release: 0.10.1
|
|
7
7
|
|
|
8
8
|
# Introduction
|
|
9
9
|
|
package/lib/BanchoMessage.js
CHANGED
|
@@ -27,7 +27,7 @@ class BanchoMessage {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* The content of this message
|
|
30
|
-
* @
|
|
30
|
+
* @returns {string}
|
|
31
31
|
*/
|
|
32
32
|
get content() {
|
|
33
33
|
return this.message;
|
|
@@ -35,7 +35,7 @@ class BanchoMessage {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Tries to parse this message as an ACTION (/me message).
|
|
38
|
-
* @returns {
|
|
38
|
+
* @returns {string}
|
|
39
39
|
*/
|
|
40
40
|
getAction() {
|
|
41
41
|
const action = actionRegex.exec(this.message);
|
|
@@ -138,8 +138,8 @@ class BanchoLobby extends EventEmitter {
|
|
|
138
138
|
case "playerChangedBeatmap":
|
|
139
139
|
case "refereeChangedBeatmap":
|
|
140
140
|
case "beatmapFromSettings":
|
|
141
|
-
this.beatmapId = ret.id;
|
|
142
141
|
if(ret.id != this.beatmapId) {
|
|
142
|
+
this.beatmapId = ret.id;
|
|
143
143
|
this.beatmap = null;
|
|
144
144
|
for(const player of this.slots)
|
|
145
145
|
if(player != null)
|