Commit ae417852 authored by nanahira's avatar nanahira

move

parent 0ff28355
...@@ -2420,10 +2420,10 @@ if settings.modules.dialogues.get_custom ...@@ -2420,10 +2420,10 @@ if settings.modules.dialogues.get_custom
ygopro.stoc_follow 'GAME_MSG', true, (buffer, info, client, server, datas)-> ygopro.stoc_follow 'GAME_MSG', true, (buffer, info, client, server, datas)->
room=ROOM_all[client.rid] room=ROOM_all[client.rid]
return unless room return unless room
msg = buffer.readInt8(0)
if settings.modules.pre_release_compat.enabled and client.is_using_pre_release if settings.modules.pre_release_compat.enabled and client.is_using_pre_release
replace_buffer(buffer, room.list_official_to_pre, 1) replace_buffer(buffer, room.list_official_to_pre, 1)
return if client.reconnecting return if client.reconnecting
msg = buffer.readInt8(0)
if settings.modules.retry_handle.enabled if settings.modules.retry_handle.enabled
if ygopro.constants.MSG[msg] == 'RETRY' if ygopro.constants.MSG[msg] == 'RETRY'
if !client.retry_count? if !client.retry_count?
......
...@@ -3019,13 +3019,13 @@ ...@@ -3019,13 +3019,13 @@
if (!room) { if (!room) {
return; return;
} }
msg = buffer.readInt8(0);
if (settings.modules.pre_release_compat.enabled && client.is_using_pre_release) { if (settings.modules.pre_release_compat.enabled && client.is_using_pre_release) {
replace_buffer(buffer, room.list_official_to_pre, 1); replace_buffer(buffer, room.list_official_to_pre, 1);
} }
if (client.reconnecting) { if (client.reconnecting) {
return; return;
} }
msg = buffer.readInt8(0);
if (settings.modules.retry_handle.enabled) { if (settings.modules.retry_handle.enabled) {
if (ygopro.constants.MSG[msg] === 'RETRY') { if (ygopro.constants.MSG[msg] === 'RETRY') {
if (client.retry_count == null) { if (client.retry_count == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment