@@ -684,21 +684,21 @@ impl Server {
684
684
685
685
fn on_plugin_message_clientbound ( & mut self , channel : & str , data : & [ u8 ] ) {
686
686
if unsafe { protocol:: NETWORK_DEBUG } {
687
- println ! ( "Received plugin message: channel={}, data={:?}" , channel, data) ;
687
+ debug ! ( "Received plugin message: channel={}, data={:?}" , channel, data) ;
688
688
}
689
689
690
690
match channel {
691
691
// TODO: "REGISTER" =>
692
692
// TODO: "UNREGISTER" =>
693
693
"FML|HS" => {
694
694
let msg = crate :: protocol:: Serializable :: read_from ( & mut std:: io:: Cursor :: new ( data) ) . unwrap ( ) ;
695
- println ! ( "FML|HS msg={:?}" , msg) ;
695
+ //debug !("FML|HS msg={:?}", msg);
696
696
697
697
use forge:: FmlHs :: * ;
698
698
use forge:: Phase :: * ;
699
699
match msg {
700
700
ServerHello { fml_protocol_version, override_dimension } => {
701
- println ! ( "Received FML|HS ServerHello {} {:?}" , fml_protocol_version, override_dimension) ;
701
+ debug ! ( "Received FML|HS ServerHello {} {:?}" , fml_protocol_version, override_dimension) ;
702
702
703
703
self . write_plugin_message ( "REGISTER" , "FML|HS\0 FML\0 FML|MP\0 FML\0 FORGE" . as_bytes ( ) ) ;
704
704
self . write_fmlhs_plugin_message ( & ClientHello { fml_protocol_version } ) ;
@@ -707,12 +707,12 @@ impl Server {
707
707
self . write_fmlhs_plugin_message ( & ModList { mods } ) ;
708
708
} ,
709
709
ModList { mods } => {
710
- println ! ( "Received FML|HS ModList: {:?}" , mods) ;
710
+ debug ! ( "Received FML|HS ModList: {:?}" , mods) ;
711
711
712
712
self . write_fmlhs_plugin_message ( & HandshakeAck { phase : WaitingServerData } ) ;
713
713
} ,
714
714
ModIdData { mappings, block_substitutions : _, item_substitutions : _ } => {
715
- println ! ( "Received FML|HS ModIdData" ) ;
715
+ debug ! ( "Received FML|HS ModIdData" ) ;
716
716
for m in mappings. data {
717
717
let ( namespace, name) = m. name . split_at ( 1 ) ;
718
718
if namespace == protocol:: forge:: BLOCK_NAMESPACE {
@@ -722,7 +722,7 @@ impl Server {
722
722
self . write_fmlhs_plugin_message ( & HandshakeAck { phase : WaitingServerComplete } ) ;
723
723
} ,
724
724
RegistryData { has_more, name, ids, substitutions : _, dummies : _ } => {
725
- println ! ( "Received FML|HS RegistryData for {}" , name) ;
725
+ debug ! ( "Received FML|HS RegistryData for {}" , name) ;
726
726
if name == "minecraft:blocks" {
727
727
for m in ids. data {
728
728
self . world . modded_block_ids . insert ( m. id . 0 as usize , m. name ) ;
@@ -738,7 +738,7 @@ impl Server {
738
738
self . write_fmlhs_plugin_message ( & HandshakeAck { phase : PendingComplete } ) ;
739
739
} ,
740
740
Complete => {
741
- println ! ( "FML|HS handshake complete!" ) ;
741
+ debug ! ( "FML|HS handshake complete!" ) ;
742
742
} ,
743
743
_ => unimplemented ! ( ) ,
744
744
}
@@ -761,7 +761,7 @@ impl Server {
761
761
762
762
fn write_plugin_message ( & mut self , channel : & str , data : & [ u8 ] ) {
763
763
if unsafe { protocol:: NETWORK_DEBUG } {
764
- println ! ( "Sending plugin message: channel={}, data={:?}" , channel, data) ;
764
+ debug ! ( "Sending plugin message: channel={}, data={:?}" , channel, data) ;
765
765
}
766
766
if self . protocol_version >= 47 {
767
767
self . write_packet ( packet:: play:: serverbound:: PluginMessageServerbound {
0 commit comments