Esempio n. 1
0
 // For non-extended players, use appropriate substitution
 void ProcessOutgoingSetBlock(ref Packet packet)
 {
     if (packet.Bytes[7] > (byte)Map.MaxLegalBlockType && !UsesCustomBlocks)
     {
         packet.Bytes[7] = (byte)Map.GetFallbackBlock((Block)packet.Bytes[7]);
     }
 }