fix change_event applying when it shouldn't on BB

This commit is contained in:
Martin Michelsen
2026-01-01 10:57:32 -08:00
parent 6b1726c1b5
commit 8fbf2246e6
+4 -2
View File
@@ -4183,8 +4183,10 @@ void send_server_time(shared_ptr<Client> c) {
}
void send_change_event(shared_ptr<Client> c, uint8_t new_event) {
// This command isn't supported on versions before V3, nor on Trial Edition.
if (!is_v1_or_v2(c->version())) {
// This command isn't supported on versions before V3 (including GC NTE), nor on the BB data server
if (((c->version() != Version::BB_V4) || (c->bb_connection_phase >= 0x04)) &&
!is_v1_or_v2(c->version()) &&
!is_patch(c->version())) {
send_command(c, 0xDA, new_event);
}
}