예제 #1
0
 internal static void SendNowInventoryOrder(Player p)
 {
     BlockDefinition[] defs = p.World.BlockDefs;
     for (int i = (int)Block.Air + 1; i < defs.Length; i++)
     {
         BlockDefinition def = defs[i];
         if (def != null && def.InventoryOrder >= 0)
         {
             p.SendNow(Packet.SetInventoryOrder((byte)i, (byte)def.InventoryOrder));
         }
     }
 }