@@ -61,44 +61,44 @@ public override bool Handle( ulong remoteUserId, CallSite site, BitStream stream
6161 {
6262 //TODO
6363 return false ;
64- MyPropertySyncStateGroup sync = ( MyPropertySyncStateGroup ) obj ;
64+ // MyPropertySyncStateGroup sync = (MyPropertySyncStateGroup)obj;
6565
66- var properties = ( ListReader < SyncBase > ) sync . GetType ( ) . GetField ( "m_properties" , BindingFlags . NonPublic | BindingFlags . Instance ) . GetValue ( sync ) ;
66+ // var properties = (ListReader<SyncBase>)sync.GetType().GetField("m_properties", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(sync);
6767
68- byte index = 0 ;
69- BitReaderWriter bits = new BitReaderWriter ( ) ;
68+ // byte index = 0;
69+ // BitReaderWriter bits = new BitReaderWriter();
7070
71- Serialize ( site . MethodInfo , stream , ref index , ref bits ) ;
71+ // Serialize(site.MethodInfo, stream, ref index, ref bits);
7272
73- MyTerminalBlock entity = null ;
73+ // MyTerminalBlock entity = null;
7474
75- MyExternalReplicable < MySyncedBlock > rep = sync . Owner as MyExternalReplicable < MySyncedBlock > ;
75+ // MyExternalReplicable<MySyncedBlock> rep = sync.Owner as MyExternalReplicable<MySyncedBlock>;
7676
77- if ( rep == null )
78- {
79- //there are lots of reasons this wouldn't be MySyncedBlock, so just ignore it and move on
80- return false ;
81- }
77+ // if ( rep == null )
78+ // {
79+ // //there are lots of reasons this wouldn't be MySyncedBlock, so just ignore it and move on
80+ // return false;
81+ // }
8282
83- entity = rep . Instance as MyTerminalBlock ;
83+ // entity = rep.Instance as MyTerminalBlock;
8484
85- MyCubeGrid grid = entity ? . CubeGrid ;
85+ // MyCubeGrid grid = entity?.CubeGrid;
8686
87- if ( grid == null )
88- {
89- Essentials . Log . Info ( "Null grid in SyncPropertyHandler" ) ;
90- return false ;
91- }
87+ // if ( grid == null )
88+ // {
89+ // Essentials.Log.Info( "Null grid in SyncPropertyHandler" );
90+ // return false;
91+ // }
9292
9393
94- Essentials . Log . Warn ( $ "{ entity . CustomName } | { index } | { properties [ index ] . ValueType } " ) ;
94+ // Essentials.Log.Warn( $"{entity.CustomName} | {index} | {properties[index].ValueType}" );
9595
96- if ( entity is MyLandingGear )
97- {
98- //clients sometimes send updates for landing gear for no discernable reason?
99- //just ignore it, it's mostly harmless
100- return false ;
101- }
96+ // if (entity is MyLandingGear)
97+ // {
98+ // //clients sometimes send updates for landing gear for no discernable reason?
99+ // //just ignore it, it's mostly harmless
100+ // return false;
101+ // }
102102
103103 //bool found = false;
104104 //foreach ( ProtectedItem item in PluginSettings.Instance.ProtectedItems )
0 commit comments