protocol: glowstone compatibility: warn not panic on unrecognized modinfo, fixes #478

This commit is contained in:
ice_iix 2021-01-16 19:48:20 -08:00
parent 0c65cc1e0d
commit d14573c3cf
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt};
use flate2::read::{ZlibDecoder, ZlibEncoder};
use flate2::Compression;
use instant::{Duration, Instant};
use log::debug;
use log::{debug, warn};
use std::convert;
use std::default;
use std::fmt;
@ -1243,7 +1243,7 @@ impl Conn {
}
}
} else {
panic!(
warn!(
"Unrecognized modinfo type in server ping response: {} in {}",
modinfo_type, modinfo
);