Skip to content

Commit b21af33

Browse files
committed
event fixes
1 parent 94ccfd1 commit b21af33

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

public/js/game.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,13 @@ if (["Android", "iOS"].some(v => window.navigator.userAgent.includes(v))) {
159159
COORDINATE_CHANGE = "coordinateChange",
160160
HEARTBEAT = "heartbeat",
161161
KICK = "kick",
162-
KICK_PLAYER = "kickPlayer",
163162
NOM_KEY = "nomKey",
164163
STATECHANGE = "stateChange",
165164
SP_NOM_KEY = "singlePlayerNomKey",
166165
DIRECTION_CHANGE_C = "directionChange",
167-
PLAYER_NOMMED = "playerNommed",
168-
COLLECT_ITEM = "collectItem",
169-
ITEM_UPDATE = "updateItem",
166+
PLAYER_NOMMED = "playerNom",
167+
COLLECT_ITEM = "itemCollect",
168+
ITEM_UPDATE = "itemUpdate",
170169
STATSCHANGE = "statsChange"
171170
}
172171
enum KickTypes {
@@ -1144,7 +1143,7 @@ if (["Android", "iOS"].some(v => window.navigator.userAgent.includes(v))) {
11441143
if (!targetUserElement || !targetUserReason) return;
11451144
ws.send(JSON.stringify({
11461145
op: OPCODE.EVENT,
1147-
t: EventType.KICK_PLAYER,
1146+
t: EventType.KICK,
11481147
d: {
11491148
// @ts-ignore
11501149
user: targetUserElement.value,

0 commit comments

Comments
 (0)