@@ -33,6 +33,8 @@ use crate::shared::{Axis, Position};
3333use crate :: format;
3434use rsa_public_encrypt_pkcs1;
3535use log:: { error, debug, warn} ;
36+ use base64;
37+ use serde_json;
3638
3739mod sun;
3840pub mod plugin_messages;
@@ -1072,7 +1074,6 @@ impl Server {
10721074 } ,
10731075 Some ( nbt) => {
10741076 if block_update. action == 9 {
1075- use crate :: format;
10761077 let line1 = format:: Component :: from_string ( nbt. 1 . get ( "Text1" ) . unwrap ( ) . as_str ( ) . unwrap ( ) ) ;
10771078 let line2 = format:: Component :: from_string ( nbt. 1 . get ( "Text2" ) . unwrap ( ) . as_str ( ) . unwrap ( ) ) ;
10781079 let line3 = format:: Component :: from_string ( nbt. 1 . get ( "Text3" ) . unwrap ( ) . as_str ( ) . unwrap ( ) ) ;
@@ -1094,7 +1095,6 @@ impl Server {
10941095 }
10951096
10961097 fn on_sign_update ( & mut self , mut update_sign : packet:: play:: clientbound:: UpdateSign ) {
1097- use crate :: format;
10981098 format:: convert_legacy ( & mut update_sign. line1 ) ;
10991099 format:: convert_legacy ( & mut update_sign. line2 ) ;
11001100 format:: convert_legacy ( & mut update_sign. line3 ) ;
@@ -1109,7 +1109,6 @@ impl Server {
11091109 }
11101110
11111111 fn on_sign_update_u16 ( & mut self , mut update_sign : packet:: play:: clientbound:: UpdateSign_u16 ) {
1112- use crate :: format;
11131112 format:: convert_legacy ( & mut update_sign. line1 ) ;
11141113 format:: convert_legacy ( & mut update_sign. line2 ) ;
11151114 format:: convert_legacy ( & mut update_sign. line3 ) ;
@@ -1130,8 +1129,6 @@ impl Server {
11301129
11311130 fn on_player_info ( & mut self , player_info : packet:: play:: clientbound:: PlayerInfo ) {
11321131 use crate :: protocol:: packet:: PlayerDetail :: * ;
1133- use base64;
1134- use serde_json;
11351132 for detail in player_info. inner . players {
11361133 match detail {
11371134 Add { name, uuid, properties, display, gamemode, ping} => {
0 commit comments