Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5f8c14b

Browse files
committed
KickTypes are no longer of type string
1 parent e3a62a8 commit 5f8c14b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

‎public/js/game.ts‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ if (["Android", "iOS"].some(v => window.navigator.userAgent.includes(v))) {
177177
STATSCHANGE = "statsChange"
178178
}
179179
enum KickTypes {
180-
ROOM_FULL="roomFull",
181-
ROOM_INGAME="roomIngame",
182-
TOO_MANY_SOCKETS="tooManySockets",
183-
CLIENT_MOD="clientMod",
184-
MOD_KICK="modKick",
185-
ELIMINATED="eliminated",
186-
WIN="win",
180+
ROOM_FULL,
181+
ROOM_INGAME,
182+
TOO_MANY_SOCKETS,
183+
CLIENT_MOD,
184+
MOD_KICK,
185+
ELIMINATED,
186+
WIN,
187187
ROOM_END = "roomEnd"
188188
}
189189
enum Direction {
@@ -784,7 +784,6 @@ if (["Android", "iOS"].some(v => window.navigator.userAgent.includes(v))) {
784784
const { op, t: eventType, d: eventData } = JSON.parse(data);
785785
if (op === OPCODE.EVENT) {
786786
if (eventType === EventType.HEARTBEAT) {
787-
console.log(eventData);
788787
if (eventData.user.role === -1 && !/[?&]guest=true/.test(window.location.search))
789788
return document.location.href = "/login/";
790789

@@ -939,7 +938,6 @@ if (["Android", "iOS"].some(v => window.navigator.userAgent.includes(v))) {
939938
}, 3500);
940939
}
941940
else if (eventType === EventType.ITEM_UPDATE) {
942-
console.log(eventData);
943941
if (typeof eventData.old === "string") { // removed item
944942
const item: number = objects.items.findIndex(i => i.id === eventData.old);
945943
if (item < 0) return; // item somehow not found

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /